• 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: Store Script Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Store Script Problem


  • Subject: Re: Store Script Problem
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 14 Nov 2015 23:01:59 -0600

On Nov 13, 2015, at 08:01, Dave <email@hidden> wrote:
I’m trying to save a .applescript file into complied .scpt file and then load it. Please see the following Handler:
______________________________________________________________________

Hey Dave,

If you look at store script it requires a script object as its direct object.

A text script is NOT a script object.

I don't often fool with script objects, so I'm a bit fuzzy on the subtleties of this.

The only way I know of to compile a text script is with the shell `osacompile`.

osacompile -o <object-file> <source-file>  (see the man page)

From there you can load it.

There may be a vanilla AppleScript method I don't know of, and I suspect there is a method using ASObjC (but that'll have to wait for Shane).

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Store Script Problem
      • From: Shane Stanley <email@hidden>
References: 
 >Store Script Problem (From: Dave <email@hidden>)

  • Prev by Date: ip forwarding
  • Next by Date: Re: Load Script Problem
  • Previous by thread: Store Script Problem
  • Next by thread: Re: Store Script Problem
  • Index(es):
    • Date
    • Thread