Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Remote AppleEvents via AppleScript

Remote AppleEvents via AppleScript
Thread Tools
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status: Offline
Reply With Quote
Oct 3, 2001, 05:05 PM
 
Hello,

I am having some problems using the remote AppleEvents feature of Mac OS X 10.1. In a wireless network when I try to compile a simple script like this:

tell application "Finder" of machine "eppc://10.0.1.1" to activate

The AppleScript editor ask me for the password of the remote machine, this O.K., and then throw an error telling me that the "dictionary of the application could not be found".

Any ideas on getting remote AppleEvents to work?
     
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Oct 3, 2001, 09:16 PM
 
I think you need a 'using terms from' block. This tells AppleScript where on your machine to get the information it needs to compile the script, since it can't get that information over the network.
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
using terms from application <font color = red>"finder"</font>
tell application <font color = red>"finder"</font> of machine <font color = red>"eppc:<font color = brown>//<font color = blue>10.0</font>.<font color = blue>1.1</font>"</font> to activate</font>
end using terms from
</font>[/code]
Then again, I haven't tried remote scripting with 10.1 yet.

[ 10-03-2001: Message edited by: Rickster ]
(edit: if HTML isn't allowed in posts, it shouldn't convert UBB to HTML when you edit.)

[ 10-09-2001: Message edited by: Rickster ]
Rick Roe
icons.cx | weblog
     
eevyl  (op)
Grizzled Veteran
Join Date: Dec 2000
Location: Málaga, Spain, Europe, Earth, Solar System
Status: Offline
Reply With Quote
Oct 8, 2001, 04:38 PM
 
Thanks for the "using terms from" info. In fact that seemed to help a bit but now I got a -916 error when trying to use remote AppleEvents.

The script that return that error is:

set remote_Finder to application "Finder" of machine "eppc://10.0.1.1"

using terms from application "Finder"
tell remote_Finder to activate
end using terms from
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:17 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2