Tag Info

Hot answers tagged

2

Here is my little script to do what you are asking for. Tested on a couple of tracks on my iTunes 11 under Snow Leopard and it run just fine. tell application "iTunes" set myMusicLib to some playlist whose special kind is Music log "Debug: Count of library items: " & (count of tracks of myMusicLib) set myNewTracks to (get tracks in ...


2

You can use a shell script like this: for f; do case $f in *.mp3|*.m4a) mv -n "$f" ~/Music;; *.jpg) mv -n "$f" ~/Pictures;; *) mv -n "$f" ~/Documents;; esac done mv -n skips a file when a file with the same name exists in the target.


2

This is certainly possible with AppleScript. Here are some resources and snippets to help you craft your ideal script. The final AppleScript combines the content of any selected e-mails and prepares an outgoing e-mail ready for sending. You can embed this AppleScript within an Automator workflow, or save it as an application for double-clicking. Getting ...


2

Change input type in the upper left of the Run Shell Script block to as arguments. Then you can get the result of the previous block like it was passed to a shell script as argument. Example: lpr -o ImageableArea=DS_8x6 -o PageRegion=DS_8x12 -o PageSize=DS_8x12 -o media=DS_8x12 $1


2

The reason your shell script isn't doing what you want is because Automator passes the full path of the files as arguments. If the full path to one of the files is /Users/foo/Temp/file1.txt, then your script attempts to rename it to ers/foo/Temp/file1.txt, which isn't what you want. Try this instead: for f in "$@"; do FILENAME=$(basename "$f") ...


1

Instead of using "Get Specified Text" then filtering paragraphs, you can use "Get Specified URLs" and direct this straight to Get Image URLs from Webpage: Alternatively, if you want to parse text, you can use Extract URLs from Text: Download Workflow


1

You can not trivially launch graphical applications as another user. A Proxy Process is Required To launch a graphical application as another user, that user must be logged in to a graphical session and have a process running within their session able to launch your desired application. Prior to OS X 10.9, this could be approximated via the launchctl ...


1

You can create services like this: Then give the services shortcuts from System Preferences > Keyboard > Shortcuts > Services. I prefer using third party applications instead of services to assign shortcuts to scripts though. There has been a bug since 10.7 where the shortcuts for services don't always work until you hover over the services menu from the ...



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