• 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: Generating applescript files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generating applescript files


  • Subject: Re: Generating applescript files
  • From: has <email@hidden>
  • Date: Thu, 16 May 2002 20:46:06 +0100

Matthew Smith wrote:

> If you are using Mac OS X you can use the shell command osacompile within a
> "do shell script" to turn it into a compiled script.

Is this faster than using 'run script'? Or does it have the same sort of
overheads?

I wouldn't mind knowing, because run script is a significant performance
sump in some of my stuff. If osacompile is faster I could support it as an
optional alternative for those who have it [OS X users].

Thanks.

-----------------

JJ wrote:

>If you're at mesozoic OS 9, you can try this (suppossed it works, too, in
>X):
>__________________
>script to_store
> beep 5
>end script
>
>tell application "Finder"
> set x to make file at desktop with properties {name:name of to_store,
>file type:"osas", creator type:"ToyS"}
>end tell
>store script to_store in file (x as text) replacing yes
>__________________

This is *not* the same thing. The author asked how to compile a script from
string and store to disk. My previous reply to the thread should make the
difference clear. [If not, maybe I can be bugged into doing another essay
that does.]

Note: the "tell Finder to make new file" bit is completely redundant (store
script is quite able to create its own files) and should be omitted for
speed's sake (amongst other reasons).

Also, I'd damn well hope store script'd work in OS 8, 9 and X alike. Some
of us would be seriously fubared without it...:p

HTH

has

--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.

  • Follow-Ups:
    • Re: Generating applescript files
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Generating applescript files
  • Next by Date: Re: New Stack Overflow
  • Previous by thread: Re: Generating applescript files
  • Next by thread: Re: Generating applescript files
  • Index(es):
    • Date
    • Thread