Re: Opening an applet on a remote mac
Re: Opening an applet on a remote mac
- Subject: Re: Opening an applet on a remote mac
- From: Axel Luttgens <email@hidden>
- Date: Sat, 02 Jan 2016 13:12:59 +0100
> Le 2 janv. 2016 à 00:15, Stockly, Ed a écrit :
>
> I’ve been trying to send apple events over IP. There’s an applescript applet on the desktop of the remote mac, and I want to activate it.
>
> The problem is that this line: "set remoteHomeFolder to home as alias” returns the path to the local home folder (I can’t directly get the desktop folder either).
>
> […]
>
> set remoteMachineAddress to "eppc://" & remoteUsername & ":" & remotePassword & "@" & remoteSubnetAddress
> using terms from application "Finder"
> tell application "Finder" of machine remoteMachineAddress
> […]
> set remoteHomeFolder to home as alias
> set remoteApp to item ":Desktop:RemoteText" of remoteHomeFolder
> open remoteApp
> end tell
> end using terms from
Hello Ed,
Aliases aren’t Finder things, they are AppleScript ones.
The Finder implements coercions of Finder items to aliases (the same way it implements some understanding of aliases), but you are then at the mercy of how the Alias Manager tries to resolve such references.
The safest way in this case is to restrict oneself to Finder references, so as to avoid those local/remote confusions, for example:
set remoteApp to item "RemoteText" of item "Desktop" of home
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden