• 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: Can a script create an applet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can a script create an applet?


  • Subject: Re: Can a script create an applet?
  • From: "Marc K. Myers" <email@hidden>
  • Date: Sat, 03 Feb 2001 01:12:17 -0500
  • Organization: [very little]

Arthur J Knapp wrote:
> Date: Fri, 02 Feb 2001 14:20:11 -0500
> Subject: Re: Can a script create an applet?
> From: "Arthur J Knapp" <email@hidden>
> To: email@hidden
>
> > From: email@hidden
> > Date: Thu, 1 Feb 2001 19:23:30 EST
> > Subject: Re: Can a script create an applet?
>
> > If this can be done vanilla it could be very useful...eg self conatined
> > installers for pro script-based apps. Ive fooled around with it a bit, but so
> > far nothing.
>
> !!! Not Extensively Tested !!!
>
> -- Your "installer" script, saved as an applet:
> --
> script HelloWorld
> on run
> display dialog "Hello World"
> end run
> end script
>
> on run
> set ThisScript to path to me
>
> tell application "Finder"
>
> -- Ues the installer itself as an applet-template
> --
> set TheApplet to duplicate ThisScript
>
> -- After setting the name of TheApplet, I could no longer
> -- access it as a Finder object, so:
> --
> set TheApplet to TheApplet as alias -- ? bug ? work-around
>
> -- Name the applet
> --
> set name of TheApplet to "HelloWorld"
>
> -- Put the script into the applet
> --
> store script HelloWorld in TheApplet replacing yes
>
> end tell
> beep 2
> end run

Thank you for a solution to a problem that has been annoying me since
sometime in October. You gave me one of those "Of course! Why didn't
_I_ think of that!" moments. Is there any particular reason why you
think it might be unstable or was that just something of a general
disclaimer for a concept not thoroughly tested? The modified versions
of the scripts I had been using that copied a separate template script
worked just fine, both for applets and droplets.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[2/3/01 1:10:46 AM]


  • Prev by Date: Re: parent properties - limited access inside child's handlers?
  • Next by Date: generic event handlers
  • Previous by thread: Re: Can a script create an applet?
  • Next by thread: Re: Can a script create an applet?
  • Index(es):
    • Date
    • Thread