• 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: running an AppleScript from terminal command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running an AppleScript from terminal command line


  • Subject: Re: running an AppleScript from terminal command line
  • From: Giuliano Gavazzi <email@hidden>
  • Date: Thu, 16 May 2002 09:15:06 +0100

At 9:54 am +0200 2002/05/16, Steffen Mey wrote:
Hi there,
comming from the other side of the moon (UNIX / WIN32),
I'm looking for a way to start an AppleScript from an
OSX terminal command line.

man -k script
...
osacompile(1) - compile OSA scripts
osascript(1) - execute OSA scripts
...

there are limitations if you are not at the console and executing from the login context. A straigth Terminal.app session, I believe, gives you such a context. From a remote login sometimes it helps running the command under sudo.
Experiment is the only answer as the documentation is rather scarce.

Giuliano
--
H U M P H
|| |||
software

Java & C++ Server/Client/Human Interface applications on MacOS - MacOS X
http://www.humph.com/
_______________________________________________
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.

References: 
 >running an AppleScript from terminal command line (From: "Steffen Mey" <email@hidden>)

  • Prev by Date: Re: Generating applescript files
  • Next by Date: RE: running an AppleScript from terminal command line
  • Previous by thread: running an AppleScript from terminal command line
  • Next by thread: RE: running an AppleScript from terminal command line
  • Index(es):
    • Date
    • Thread