I think this is good news for you, since you are working much with JavaScript for Automation. LB has an extended support for JavaScript. To better understand the used AppleScript handlers, and to get an overview of all available handlers, don’t miss to read the AppleScript section of LB’s Developer Reference. If you cannot parse my sometimes very clumsy wording, just ask I’ll check it out, and will definitely read/study your entire post. You don’t even have to close/re-open the action, just wait a second for the live search to kick in, and the path will be reset to the default! (You’ll see a message when it happened.)Īs soon as you see the message you can type a new search string to search in your default path. To restore your default search path it is not necessary to send the default folder to the action. Quickly reset a custom search path to the default path: You can change the path in the script: just replace all instances of $ with the POSIX path of your preferred default search path. That means in our case: after you have set a new search folder, just hit ⌘B and the JXA-Search action will instantly be selected again and you can enter your query by hitting the Spacebar. Unfortunately I haven’t found a way to do the two things in one step.īut you know the ⌘B hotkey, don’t you? ⌘B brings up the recently performed actions and items (a very useful hotkey!). To understand what the Return key does and what the Spacebar does, please open the script (default.scpt). If your problem with the Return key still persists, then this might be an issue! You may have noticed that, to fully enjoy the action, you must make use of the Spacebar and of the Return key. Now, to actually perform a search in the “Scripts” folder, bring up the JXA-Search action again and hit the Spacebar to enter your query. Now the “Scripts” folder is the new search path. Once the JXA-Search action is selected hit the Return key ( not the Spacebar!) Type your abbreviation to bring up the JXA-Search action While the “Scripts” folder is selected hit the Send key (Tab) Send the “Scripts” folder to the Action, as you know it from other Send actions: Select any folder where you want to limit your search to, e.g. This is exactly as with the old version: bring up the JXA-Search action, hit the Spacebar and enter your query. The JXA-Search action now has two “personas”: > Please read through the whole post to understand how it works. Support a Send Folder to allow search of specific folder.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |