• 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: making a .app script from the command line with osacompile; convert a compiled script to a .app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a .app script from the command line with osacompile; convert a compiled script to a .app?


  • Subject: Re: making a .app script from the command line with osacompile; convert a compiled script to a .app?
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 26 Aug 2002 19:52:55 -0700

On Monday, August 26, 2002, at 05:43 PM, christopher ariza wrote:

1. how can one convert a compiled script to a .app from the command line?

osacompile doesn't provide any direct support for this -- all it does is create a compiled script and stuff it in a file (or resource). To create an applet, you need all the other goo that makes it an applet, i.e., the executable stub in the data fork and a bunch of other resources.

The simplest way to do this is to save some trivial applet from Script Editor and use it as a host. You can then implant your script into it using osacompile, and presto! ("Alien" references about this point are expected.) You'll need to use -c aplt -t APPL when you call osacompile, or it will set the type and creator to a normal script.

There's a bug on osacompile to have it make applets by itself, but there are a bunch of other issues to sort out first. It'll be in some future release.

2. can Script Editor be scripted?

Script Editor is not scriptable, but the third-party editors Smile and Script Debugger are.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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: making a .app script from the command line with osacompile; convert a compiled script to a .app?
      • From: christopher ariza <email@hidden>
References: 
 >making a .app script from the command line with osacompile; convert a compiled script to a .app? (From: christopher ariza <email@hidden>)

  • Prev by Date: Re: Moving Mail....
  • Next by Date: Re: New Address Book in Jaguar 10.2...
  • Previous by thread: making a .app script from the command line with osacompile; convert a compiled script to a .app?
  • Next by thread: Re: making a .app script from the command line with osacompile; convert a compiled script to a .app?
  • Index(es):
    • Date
    • Thread