Tag Info

Hot answers tagged

1

I figured it out. I just need to direct the output to /dev/null: /sw/bin/xemacs "$@" &> /dev/null & Easy peasy. The output was getting grabbed by the shell script. As soo as you redirect both standard out and standard error to /dev/null (i.e. oblivion), the rest of the workflow stops waiting and ends.


1

I was inspired by your question to tinker a bit. I don't have xemacs or use emacs, so I tried a text editor in terminal windows using iterm. You can also use a second level of indirection in Automator I did this for joe (Joe's Own Editor). This calls a second app (Untitled.app) opening one file at a time allowing single quotes around the argument to ...


1

You're looking for $@: sips -z 750 1334 "$@"


1

I found a following solution that works for me: for f in "$@"; do sips -z 750 1334 "$f" done


1

You could do it with an Alfred Worflow (you need the Powerpack). First create a Blank Workflow and fill the data: Use the plus symbol in the right cornet to add Trigger → Hotkey action. Define your prefered hotkey and save it. Add Actions → Run script. Use /usr/bin/osascript as language. Paste the following script and save it. Change ls -l to whatever ...


1

This can be done using AppleScript, like in the question you linked to. Watch out, this is not the same as Automator. Example script: osascript -e 'tell application (path to frontmost application as text) set myFile to choose file POSIX path of myFile end' This uses the simplest form of the choose file command, and puts the result in the variable myFile. ...



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