• 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
Re: Execute a applescript from the CL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Execute a applescript from the CL


  • Subject: Re: Execute a applescript from the CL
  • From: "Chris Espinosa" <email@hidden>
  • Date: Mon, 13 Jan 2003 14:21:07 -0800

----- Original Message -----
From: "Charles Heizer" <email@hidden>
Sent: Monday, January 13, 2003 12:45 PM
Subject: Execute a applescript from the CL


> Hello,
> Is it possible to execute a applescript from the command line and pipe
> out it's results to a shell script?

osascript "Library/Scripts/My Script.scpt" | wc

See 'man osascript' for more details. The main hangup is that the osascript
process can't do any user interaction, so if your script wants to do a
display dialog, etc. it should tell the frontmost process to do it for it.

Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: OSX script to change/copy file icon ?
  • Next by Date: Re: Help! Photoshop Applescript times out
  • Previous by thread: Re: Execute a applescript from the CL
  • Next by thread: Re: Execute a applescript from the CL
  • Index(es):
    • Date
    • Thread