Re: X Code load script question
Re: X Code load script question
- Subject: Re: X Code load script question
- From: email@hidden
- Date: Mon, 31 Oct 2005 22:03:40 -0500
Thanks. That solved the problem. I was not aware that it compiled these
files and put them inside the package. But, I still could not get (path
for script scriptname) to work. It is not returning the path to the
script. Does scriptname needs the path as part of it (which defeats the
purpose)? Is it supposed to be a smart command that knows that script
scriptname is inside the package,without have to supply a path name? I
must be missing something.
Also, I am curious as to why the "load POSIX file" and not "load file"
You wrote in your previous email:
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:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden