• 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 ariza <email@hidden>
  • Date: Tue, 27 Aug 2002 15:32:03 -0400 (EDT)

implanting the script as a resource into an exisiting .app is an
attractive idea. my next question: wich resource? the flag is defined as:

-r type:id

what resource type and id should the applescript be placed in?

many thanks!
christopher ariza



On Mon, 26 Aug 2002, Christopher Nebel wrote:

> 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 Nebel <email@hidden>
References: 
 >Re: making a .app script from the command line with osacompile; convert a compiled script to a .app? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Difficulty Opening a Text File in BBEdit
  • Next by Date: Re: Converting Date?
  • Previous by thread: Re: 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