4/10/2023 0 Comments Macos vba![]() Tell application "Finder" to open folder folderPath Create a script using the Script Editor that contains the handlers (subroutines) you want to call, for example: on openFolder(folderPath).ScriptString = "tell application " & Chr(34) & "Finder" & Chr(34) & " to open folder " & FolderPath ScriptString = "tell application " & Chr(34) & "Finder" & Chr(34) & " to open folder (path to desktop)"įolderPath = "Macintosh HD:Users:you:Path:To:Some:Folder:" ![]() ![]() Note that this command may not work in a sandboxed application.Untested examples: The older (deprecated) style: Note that the open shell utility is normally used to open files and applications. Where theFolder is an alias, file, or POSIX file object, for example from: set theFolder to (choose folder) In the case of the Finder (which runs at all times), It would be: tell application "Finder" to open theFolder ![]() AppleScript does these kinds of things by telling a particular application to perform one or more of the commands exposed in the scripting dictionary (if any) provided by the application developer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |