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: X Code load script question



On 10/31/05 5:37 AM, "email@hidden" <email@hidden> wrote:

> Is it possible to "load script" files that are in the project. The
> AppleScript extension to file names causes a hiccup, unless the
> extension is .scpt (in which case  X Code does not treat the file as a
> well formed file and does not highlight its code properly).

But you won't need to load scripts in the _project_. You'll be loading
scripts in a _build_. And all the .applescript files in your project will be
turning into .scpt files in any build made from it, so it works just fine.
Use the 'path for script' command like this:

    set extraScript to load script POSIX file (path for script "Extra Script
Name" extension "scpt")


Questions about AppleScript Studio should be sent to the applescript-studio
mailing list, rather than here.

-- 
Paul Berkowitz


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

This email sent to email@hidden

References: 
 >X Code load script question (From: 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.