• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
problem running a workflow from the command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problem running a workflow from the command line


  • Subject: problem running a workflow from the command line
  • From: email@hidden
  • Date: Wed, 13 Jul 2011 16:21:58 -0600

I want to extract the text strings from a PDF file.  This is easy with Automator.  I have a workflow with two actions.  It does a "Get Specified Finder Items" action to find a file named "ipv6.pdf", which it feeds to an "Extract PDF Text" action. When I run the workflow, I get a nice text output file named "ipv6.txt" on my Desktop.  Great!

Now I want to execute the workflow from a bash shell script.  I tried this:

galway$ automator get-diagram-strings.workflow
2011-07-13 15:55:40.235 automator[9153:903] No application name for definition file at path: /Library/Automator/Office.definition
2011-07-13 15:55:40.635 Automator Runner[9154:903] No application name for definition file at path: /Library/Automator/Office.definition
(
    "/Users/siemsen/Desktop/ipv6.txt"
)
galway$

This works, but I don't like the "error" messages about "no application name".  What's the problem?

Also, I'd rather not see the last three lines, in parentheses, which are an informational message.  I suppose I could use I/O redirection in the shell script, but that seems klunky.

Also, I'd like to be able to check the status of the workflow run within the bash script.  Does the "automator" command return a status?  Is that a reasonable thing to do, or is there a better way?

I'd be most happy if there were a command-line version of the "Extract PDF Text" action, so that I could bypass Automator.

Any help appreciated.

-- Pete

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: AUTO: Endlich Urlaub! (Rückkehr am 18.07.2011)
  • Next by Date: Mark Muse/HFC/NPS is out of the office.
  • Previous by thread: AUTO: Endlich Urlaub! (Rückkehr am 18.07.2011)
  • Next by thread: Mark Muse/HFC/NPS is out of the office.
  • Index(es):
    • Date
    • Thread