Tag Info

New answers tagged

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


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


0

You can use the Launch Application action:


1

This AppleScript will open the specified folder in VLC and begin to play the contents: tell application "VLC" OpenURL "file:///Users/grgarside/Desktop/test/" play end tell


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


2

Create the application with Platypus instead: The application window looks like this:


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


0

Found this. Edited it to my needs (no iTunes import, don't delete the files). If I select files it works but not for folders. Pretty nice. A solution where I can select files or folders is still prefered.


0

I collated answers from this thread and elsewhere into a "Email reply reminder" workflow which sets a reminder to reply to an email , its on github here


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


0

If you were were to open AppleScript, you would use the following format: do shell script "/usr/bin/su - " & user & " -c " & "'" & cmd & "'" with administrator privileges password "blahblah" If you wanted to make a shell script, you'd need to chmod a+x the file and write it out like this: #!/usr/bin/env bash su -c ...


0

You can simply save your example as a text file adding the suffix .command or .sh to it to execute it with a double-click. AppleScript can call an .sh-script, too, with do shell script "/path/to/yourscript.sh" Not sure if Automator can do the same. But su basically only works with commands not using the Aqua GUI of Mac OS X. So if you try to open an ...


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


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



Top 50 recent answers are included