|
|
Error in Applescript, CONNECTION IS INVALID error? [delay script]
|
|
|
|
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status:
Offline
|
|
delay 10
run application "primary:Applications:SafariDepot:Scripts:Uplo ad Safari Bookmarks.app"
end run
end delay
I created the code above to run the "upload safari bookmarks.app" application. The program runs fine and dandy.
Here's the problem, at the end of running the application I get a "connection is invalid" error, I click on "OK" and that's it.
Why is this popping up? Is there any way to automatically click on that "OK"? Or maybe I wrote the small script wrong?
Suggestions?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Mar 2000
Location: Salem, OR, USA
Status:
Offline
|
|
I downloaded SafariDepot just to have the executable, but didn't configure it.
Try this on for size:
code:
try
tell application "Mac HD:Applications:SafariDepot:Scripts:¬
Upload Safari Bookmarks.app"
activate
end tell
end try
-numero
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status:
Offline
|
|
NUMERO! THANK YOU!!! Works perfectly!
I have no idea what the "try" command is for, but that made the difference I've tried using "tell" before, but that didn't work for me.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|