1

How do I get the directory where the app created in automator resides?

Example:

  • Create App using automator
  • Save to ~/Documents/Automator
  • Run automator app, which does something in it's directory
2

Add an AppleScript step which contains:

on run {input, parameters}

    set p to POSIX path of (path to me)
    return {p}

    return input
end run

From there, you can use the "p" parameter.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .