Tag Info

Hot answers tagged

1

You can use the following Apple Script to set a variable (named item_count) to the number of items returned from the previous action: on run {input, parameters} set (value of variable "item_count" of front workflow) to (count of input) return input end run The list of items is simply passed through. You could use it like this:


1

The list of these shells in this action come from this PLIST file --> "/System/Library/Automator/Run Shell Script.action/Contents/Resources/Shells.plist" Edit this file to add others shells (need administrator's password) <key>/Users/iain/Library/Frameworks/zsh/Programs/zsh</key> <dict> <key>args</key> ...


1

If any of your files or folders in Dropbox happen to have spaces, your script will not behave as you expect. You can fix that by adding quotes to the appropriate places like so: for f in "$@" do /opt/local/bin/pdf2svg "$f" "${f%.*}.svg" done If that isn't the source of the problem, please update your question with more specifics as to what the ...


1

Step 1: Automator tasks Create an Automator task, and save it (take note of the task file location). You probably want a couple Automator tasks in this case (one to mute and one to unmute). Here's a very basic mute script: set volume output volume 0 And unmute: set volume output volume 100 After you've created both Automator task files, Step 2: ...


1

Open Automator app Click on Calender and find and Drag the Find Calender Events Select the Event has attendees! (obviously :) ! On left select the Utilities and find drag the set computer volume to the right. Run a test in Automator to verify the Mute is activated, and save the file.


1

There's a Macworld article that may help you do what you want, although it focuses on logging out idle users in a fast-switching environment rather than closing applications. That said, if you have a launch agent monitoring the idle state of the user, it should be possible to have it trigger an AppleScript that brings Safari into focus and tells it to exit. ...


1

OS X features NSDataDetector which has the ability to detect types of data. More information regarding the NSDataDetector class can be found on Apple's developer site: https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSDataDetector_Class/



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