Fw: Applescript error -2709 over SSH after hostconfig change
Fw: Applescript error -2709 over SSH after hostconfig change
- Subject: Fw: Applescript error -2709 over SSH after hostconfig change
- From: Russ <email@hidden>
- Date: Tue, 23 Jul 2002 15:28:47 -0400
- Organization: Eh? Whats that?
I haven't received any responses on this - does anyone at least have a good idea where to start troubleshooting this? I'd really like to find out what was corrupted. More than just getting it back to a workable state, I would love to see what prevents the script from getting iTunes event dictionary. I did a bit omre troubleshooting, and it seems to be iTunes specific. I wrote two simple tests:
tell application "Finder"
end tell
tell application "iTunes"
end tell
The first exits with no output, but the 2nd gives the same error as below when connected through ssh. Both exit with no error when at a local shell prompt.
How does applescript look for an app's event dictionary, and how could that relate to being on an ssh connection?
I'm new to OS X, had a PPC6100 years ago, and good pretty good with Unix (in general) - any ideas would be greatly appreciated.
Thanks,
Russ
----- Forwarded message from Russ <email@hidden> -----
From: Russ <email@hidden>
Date: Tue, 16 Jul 2002 10:30:50 -0400
To: email@hidden
Subject: Applescript error -2709 over SSH after hostconfig change
User-Agent: Mutt/1.3.27i
I have a simple script which manipulates iTunes from the command line.
tell application "iTunes"
copy name of current track to current_tracks_name
copy artist of current track to current_artist_name
return current_artist_name & " - " & current_tracks_name
end tell
This worked fine over an ssh connection from another machine when I execute it via osascript. I changed /etc/hostconfig's hostname entry, rebooted, and now it won't work. If I execute the same script from a local shell window, it works fine. I changed the hostname entry back to its default -AUTOMATIC- and rebooted, but it still won't work.
Here is the error message I get when executing through SSH:
syntax error: Can't get the application's event dictionary. (-2709)
Any help identifying the problem would be greatly appreciated.
Thanks,
Russ
----- End forwarded message -----
_______________________________________________
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.