Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: more than one script




On 2007 Feb 22, at 07:05, Andreas Kiel wrote:

Hi Wayne

1) How do you create two scripts in an ASS application? so that you could potentially point buttons to either of those scripts.. 
Just press command-N and select "AppleScript Text File" and name it - the path normally targets to the ASS project - and save it.
When you have done that the script will be visible in IB and you can link a button or whatever to that new script, but you can't connect an interface item to more than one script. But an interface object naturally can be controlled from more than one script.


And from a previous post from Chris Nebel:

There's a bug where Xcode likes to save files as UTF-8, but osacompile can't cope with that.  The solution is to Get Info  on that file and change the File Encoding (in the General tab) to your primary language encoding -- for you, probably Western (Mac OS Roman).  When it asks you if you want to Convert or Reinterpret, choose Convert.

So having created the new AppleScript text file, convert it to Western (Mac OS Roman).

MarkB
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden

References: 
 >more than one script (From: Wayne Melrose <email@hidden>)
 >Re: more than one script (From: Andreas Kiel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.