In a Mac mail rule, I am trying to run a javascript instead of an applescript. This has been asked in Mail Rules using JavaScript for Automation instead of AppleScript but the answer is not working for me!  I have tried to simplify the code as much a...
I'm having a hard time extracting presentationNotes from a keynote presentation using JXA (Javascript for osx) I don't want to use applescript. There is way more to this script than extracting notes.  It seems rather simple. However when I ge...
In Yosemite it now is possible to use JavaScript for automation as well as Applescript. I am having trouble with certain StandardAdditions commands. E.g. from the Contacts application I can use displayAlert, but not displayNotification. Both are in t...
The StandardAdditions.sdef indicates that particular data types can be retrieved from the clipboard using the key 'as'.    The clipboardInfo() function reveals what these keys are for Applescript, but is less eloquent in case of Yosemite Java...
I am trying to figure out how JXA(JavaScript for Automation) works, so try to translate a simple applescript as below to JXA.  tell application "Finder"     open location "smb://XXXXXXXX" end tell   what I tried is here:  finder = App...
I'm starting to try converting some of my AppleScripts into JavaScript in OS X Yosemite, but I don't understand how I'm supposed to access enums from applications.  For example - the status of Adium.  In AppleScript:  tell application ...
In OSX Yosemite I am use the new JavaScript for Automation feature to script Calendar.  I am attempting to search a Calendar to see if there is an event that is currently occurring.  I have done this in AppleScript like so:  set now to current date...
I would like to access the frontmost tab being displayed in Safari and retrieve the URL using the JavaScript Automation scripting in Yosemite Script Editor. I can get the first window, first tab url  using code like:  Application('Safari').wi...
Calling theClipboard ...  app.theClipboard()   ... logs this data (truncated here):  app = Application("Preview")   app.theClipboard()     --> {       "TIFF":"<>",       "8BPS":"'8BPS'($9AB...9$)&#...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.