Script Editor vs command line = different results
Script Editor vs command line = different results
- Subject: Script Editor vs command line = different results
- From: Andersen Studley <email@hidden>
- Date: Thu, 8 Jul 2004 16:21:00 -0700
List,
Let me first say the level and detail of help offered, as well as the
willingness to help a newbie is really great to see among this list, my
eternal thanks.
I'm hoping this is the last question I will have to trouble you with
for some time...
Thanks to your help I have a script that performs exactly what I
want... but only if I run it through the Script Editor.
Specifically, it locates a file on a remote disk (iDisk) and opens it
up for reading / writing.
Like I said, when run through the Script Editor it works like a charm,
but any other way I can think of to run it results in a file not found
error. I've tried the command line, running it as a 'do shell script'
through another script, etc with every possible way to save it
(application, text, etc) I haven't been able to get the load script /
run script to work, so I don't know if that's the answer (my attempted
code will follow)... but I'm obviously missing something.
What am I missing?
Thanks for your help, and above all your patience and willingness to
help this newcomer.
Andersen Studley
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
_______________________________________________
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.