RE: Deploy compiled AppleScript not work
RE: Deploy compiled AppleScript not work
- Subject: RE: Deploy compiled AppleScript not work
- From: "Chen Wang" <email@hidden>
- Date: Fri, 2 Jun 2006 12:13:57 -0400
- Thread-topic: Deploy compiled AppleScript not work
Hi Gary, I've tested the code with success on one system and failure on
the other. In the successful case, I used "MSWD" as application file id,
it works well. But on the second system, no matter what I feed to the
application file id, it gives me the same error message:
"Finder got an error: An error of type -10814 has occurred."
However, I think the work around code is reasonable because it attempts
to answer the similar question in Carbon world about multiple id strings
(name or file name) retrievable from the same Process Serial Number.
Thanks.
- Chen
>Hi Chen,
>If you are trying to run scripts with the application installed in
different places you can get around it like so:
>OS9 way:
try
tell application "Finder"
set appName to name of application file id "MSIE"
end tell
on error errMsg
display dialog (errMsg) as string
end try
Then you can ref that application like:
tell appName
// do something
end tell
And if you add a
on run
end run
>around the code you don't even need to compile it... just save as text
and do something like
>run script file (filename)
>Regards, Gary.
Confidentiality Notice: This e-mail, including any attachments, is for the sole use of the intended recipient(s) and may contain private, confidential, and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient or this information has been inappropriately forwarded to you, please contact the sender by reply e-mail and destroy all copies of the original.
_______________________________________________
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