• 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: variables vrs properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variables vrs properties


  • Subject: Re: variables vrs properties
  • From: "Stockly, Ed" <email@hidden>
  • Date: Wed, 5 Jan 2011 17:30:35 -0600
  • Acceptlanguage: en-US
  • Thread-topic: variables vrs properties

I wonder if it's possible to build a shell template that does it that way
and incorporate it into SD or SE so it saves using a better shell.

Cal was working on something similar, back in the day.

Ed


On 1/5/11 3:28 PM, "Shane Stanley" <email@hidden> wrote:

> On 6/1/11 10:11 AM, "Bruce Robertson" <email@hidden> wrote:
>
>> Can you explain that a little more?
>> You're doing this within the applet?
>> You are instead creating something with AppleScriptObjC?
>> Not sure what comes when here.
>
> Suppose you have a script applet:
>
> tell application "XYZ.app"
> -- do a zillion things
> end tell
>
> And it's slow. But rewrite it like this:
>
> script goFast
> tell application "XYZ.app"
> -- do a zillion things
> end tell
> end script
>
> run script goFast
>
> And it goes much, much faster. In the case of one of my Illustrator scripts,
> probably a couple of orders of magnitude faster.
>
> The AppleScriptObjC route is to write an ASObjC script that loads a script
> from its bundle, and then runs that. Same principal except (a) you can use
> the same shell structure, storing your script file as main.scpt in the
> bundle, (b) you don't need to modify your script, and (c) your script gets
> access to all the other ASObjC goodness as well.

 _______________________________________________
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: variables vrs properties
      • From: Shane Stanley <email@hidden>
References: 
 >Re: variables vrs properties (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: variables vrs properties
  • Next by Date: Re: variables vrs properties
  • Previous by thread: Re: variables vrs properties
  • Next by thread: Re: variables vrs properties
  • Index(es):
    • Date
    • Thread