Creating a script from another script in AS
Creating a script from another script in AS
- Subject: Creating a script from another script in AS
- From: "Francois Houle" <email@hidden>
- Date: Tue, 17 May 2005 13:57:23 -0400
- Thread-topic: Creating a script from another script in AS
I have an issue when
I try to create a scripted app through another script. The new ddocument gets
created, the text does get entereed and compiled properly... It simply will not
allow to save it. Here is an example of that script... I just can't figure out
why I get that error: "NSInternalScript
Error"
set user_info to
"user:pass@1.1.1.1/HardDrive"
set scripts_folder to (path to desktop folder from
user domain) as string set file_name to "Testfile"
----------------
tell application "Script Editor" to tell (make new
document)
set its text to "tell application
\"Finder\"
try
mount volume \"afp://" & user_info &
"\"
on error
display dialog \"There was an error mounting the
shared drive.\"
buttons {\"Cancel\"} default button 1
end try
end tell"
compile it
save as "application" in ((path to desktop folder
from user domain) &
file_name) run only "true"
end tell
----------------
Can some one help ?
Frank
_______________________________________________
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