Re: Script Editor vs command line = different results
Re: Script Editor vs command line = different results
- Subject: Re: Script Editor vs command line = different results
- From: Andersen Studley <email@hidden>
- Date: Thu, 8 Jul 2004 17:52:19 -0700
On Jul 8, 2004, at 4:44 PM, Paul Berkowitz wrote:
On 7/8/04 4:21 PM, "Andersen Studley" <email@hidden> wrote:
This code yields a "Can't make xxx into a file" error, no matter how
I
save the script
set theScript to (load script "Users:me:Desktop:scpt:test.scpt")
--[.app | .scptd | .applescript]
run script theScript
1. You're trying to load a string, not a file.
2. If you're hard-coding the file-path like that, you need to begin
with the
name of the disk that "Users:" is on
Thanks for the tip. I had thought I didn't need to as the other paths
I hard coded (such as the files I'm working on) worked fine without it.
I can now run the script from a script, unfortunately it didn't solve
my problem.
Any insight, or workaround, as to why executing it from the Script
Editor works, whereas any other form of invocation produces a File Not
Found error?
Thanks
Andersen Studley
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.