Hot answers tagged

2

Paste this script into script editor and save it as a service. Map the service to a keyboard shortcut. tell application "Safari" activate tell current tab of window 1 do JavaScript "location.reload();" end tell end tell EDIT tell application "Safari" activate tell window 1 --options set myTab to tab 1 ...


2

Here is an Automator Service that becomes available in Finder when Folders are selected and emulates the context-menus Compress [n] Items command except it creates an individual zip archive file for each selected Folder in the name of the selected Folder. If the Folder Name.zip file already exists then a " 2" (space 2) is appended to the filename, e.g. ...


1

You can execute shell script directly on OS X, so there's generally no good reason to do that. However, if you really feel like it, you can use do shell script "script" to execute a shell script in AppleScript.


1

The following steps solved the problem for me: Export the workflow from Automator (e.g. to Desktop). Click on the exported workflow. A dialog appears asking whether you want to open it or install it. Choose Install. Another dialog appears asking whether you want to overwrite the existing service. Choose Overwrite. Now the service appears in the proper ...


1

If Automator is closed then open Automator and select Application under Choose a type for your document, then click the Choose button. If it's already open the choose File > New and select Application under Choose a type for your document. Add a Run Shell Script Action to it. Copy and paste the shell code you presently have into the Run Shell Script ...


1

As one of the commenters alluded to, "get first message of inbox" probably won't return what you expect. When retrieving messages using AppleScript, Mail sorts your mailbox accounts alphabetically. Within each account's inbox, messages are sorted newest first. What you have selected in Mail doesn't change the order in which they're returned to ...



Only top voted, non community-wiki answers of a minimum length are eligible