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...
I use JXA to script workflows for Alfred 2 and recently tried to run a script from within another script. I need to pass some text between the scripts, so I decided to use parameters, but whenever I try to pass a string, a number, an array or anythin...
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 am trying to make use of the new JavaScript Automation feature in OS X (10.11) to script an application that does not offer a dictionary. I have an AppleScript that interacts with  that application using raw Apple Events, like so:  tell application...
I'm trying to get a simple dialog to show for a workflow I'm working on, but using JXA I keep getting the error: Expecting object specifier, argument has no object specifier. I don't know what to pass in for the object Specifier. My code...
I am trying to write a JXA script in Apple Script Editor that converts PNG files to base64 strings, which can then be added to a JSON object.  I cannot seem to find a JXA method that works for doing the base64 encoding /decoding part.  I came across...
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 ...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.