Re: making a .app script from the command line with osacompile; convert a compiled script to a .app?
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.