Tag Info

New answers tagged

0

output=$(hdiutil verify "$f") echo "$output"


0

Use a run handler: on run {input, parameters} input end run Or if you need the input as a list of POSIX paths: on run {input, parameters} set l to {} repeat with f in input set end of l to POSIX path of f end repeat end run For a script saved directly in /Library/Scripts/Folder Action Scripts/, use an adding folder items ...


0

Yes it can: You can use the normal Mail rules with a perform action: Run Applescript. Create a normal Mail rule applescript. But include code to call your automator workflow via the unix command /usr/bin/automator. The /usr/bin/automator command will run the workflow you point it at and optionally can pass input onto the workflow using the -i option. ...


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/


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:


0

One option would be to run the following script in Terminal #!/bin/bash find /Volumes/NAME_OF_EXTERNAL_DRIVE -type f -print | while read f; do case "$f" in *.jpg) cp "$f" "~/Pictures/${f##.*/}" ;; *.mp3) cp "$f" "~/Music/${f##.*/}" ;; *) echo "Don't know how to handle '$f'" ;; esac done ...


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. ...


0

Just loaded Hazel v3 on my Snow Leopard (10.6.8) and I noticed that it does a poor job of detecting when a file is busy. When I created a file like this... $ cat > fileXX In it's log it correctly says that file is busy but then gives up on it and moves it anyway....!? 2014-09-28 22:07:32.735 hazelworker[11272] Processing folder Test 2014-09-28 ...


0

Easiest Way: Put all PDFs in one folder. Select All and Open. Make sure View -> Thumbnails is checked, so you can make sure everything is in correct order. Click File -> Print. In Print Window, click PDF -> Save as PDF.


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

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: ...



Top 50 recent answers are included