Search the Community
Showing results for tags 'jxa'.
I’ve been seeing a lot of workflows that need to interact with a browser via AppleScript (usually to get a page’s url), but most of them seem to settle on a single browser (usually Safari), which is a shame. I can understand — applescript is a pain, and since each browser implements these functions however they want, finding the best way to do it with each one can be difficult, so here’s the code for most of them. The code for this may seem massive, but it is not. Read the comments to understand when to use what. You can find the latest version of this as a gist. -- AppleScr
Hi all! First post here. A workflow of mine involves having a script launch a bookmarklet in Google Chrome. I can, it is true, put the JS code to be executed directly into my script, but that means changing my code in 2 places every time I change something. So with Applescript, opening a bookmark in Chrome is trivial: tell application "Google Chrome" if not (exists window 1) then reopen set coef to URL of bookmark item "Coef" of bookmark folder "Bookmarks Bar" open location coef end tell But when trying this in JXA, everything goes to hell.
This is a simple workflow for quick full text search inside current pathfinder folder. It can: filter files in your current pathfinder folder full text search in your folder THERE IS NO FINDER SUPPORT - I don't use it and Im too lazy to add it - if you want you can add it yourself github download dependency - http://geoff.greer.fm/ag/speed/ Search Options: -a --all-types Search all files (doesn't include hidden files or patterns from ignore files) -D --debug Ridiculous debugging (probably not useful) --depth NUM