• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Opening an applet on a remote mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Opening an applet on a remote mac (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: [List Suggestion] Set the "Reply To" Header to the List
  • Next by Date: Re: Opening an applet on a remote mac
  • Previous by thread: Re: Opening an applet on a remote mac
  • Next by thread: Re: [ANN] CalendarLib, improved Calendar scripting
  • Index(es):
    • Date
    • Thread