• 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: How do I schedule a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I schedule a script


  • Subject: Re: How do I schedule a script
  • From: Graff <email@hidden>
  • Date: Wed, 14 Jan 2004 18:53:23 -0500

From the man page for osascript:
"osascript executes the given script file, or standard input if none is given. Scripts may be plain text or compiled scripts."

- Ken

On Jan 14, 2004, at 6:24 PM, Paul Berkowitz wrote:

Something looks odd there. The .applescript extension is used by AppleScript
Studio for _uncompiled_ text files (which are compiled for the Build and
become .scpt files in the build). Compiled scripts have the .scpt extension.

Does osascript expect text files such as .applescript or .txt files, whose
content it would compile itself, or does it want .scpt files already
compiled and saved by a script editor?

--
Paul Berkowitz


From: Stephen Jonke <email@hidden>
Date: Wed, 14 Jan 2004 17:06:21 -0500
To: AppleScript List <email@hidden>
Subject: Re: How do I schedule a script

You can run a compiled applescript via cron (and in the terminal or a
shell script) by using the command-line command osascript, such as
this:

/usr/bin/osascript /path/to/the/script.applescript

For cron entries use the full path to the osascript command as shown,
as well as the full path to your script. Your applescript being in the
file "script.applescript" or whatever name you chose.

IMHO Cronnix only makes CRON somewhat easier to use, not easy in a Mac
sense. Still, cron is a service that's built-in and thus "free".

Steve

On Jan 14, 2004, at 4:21 PM, j.e.b. wrote:
Mark

Is it possible to run a compiled script via Cron or just an
application as
you mentioned in your post.
_______________________________________________
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: 
 >Re: How do I schedule a script (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: How do I schedule a script
  • Next by Date: Re: Application Bundles not working
  • Previous by thread: Re: How do I schedule a script
  • Next by thread: inheritance
  • Index(es):
    • Date
    • Thread