![]() ![]() If (idList does not end with pathSeparator) then exit repeat Set startPosition to findPathSeparator(theData, theFile) Set theFile to (open for access POSIX file ("/tmp/get_recent_folders") with write permission) Here's the AppleScript (based on the answer by Oliver Joseph Ash): on findPathSeparator(theData, theFile) You can get those valves from "Finder defaults", it's on the first position under FXRecentFolders key. The Go > Recent Folders menu: no way to tell the position of the last closed folder due to this list being sorted by name: For example >Edit Start Dictation|l Cancel Dictation will either start or cancel >dictation :-)Īdditionally you can use a wildcard if a menu-item has variable parts hide >and show) you can use || to toggle one of them. If an item can have multiple names based on it's state (e.g. ![]() >Just always put the position in parentheses. "(2) (2)" will trigger the second item in the File menu. For example: "File (2)" will trigger the second item in the >File menu. You can also trigger a menu-item by it's position (e.g. For example: "File New:Window" (without the quotes!) will If not, are there any options to do this in a shell command or with AppleScript?ĮDIT: I've found that BetterTouchTool allows adressing menu items with variable names/labels, but now I need to predict the position of the last closed tab in the A-Z sorted list of recent locations.Įnter the path to the menubar item you want to click, separated by >semicolons.Can I bind a key combo to a menu item with a variable name? If yes, how does that work?.I'd like to open it with shortcut ⌘ ⇧ T instead, but I'm not sure how to approach this. In Finder, I can reopen a tab or window I just accidentally closed by going into the Go > Recent Folders menu and pick one of the recent folders from the list.
0 Comments
Leave a Reply. |