Remote events conundrum
Remote events conundrum
- Subject: Remote events conundrum
- From: Steve Roy <email@hidden>
- Date: Sat, 15 May 2004 22:42:08 -0400
Here's an interesting question. How can I launch the Finder on a remote
Mac?
For most people, the Finder is always running, but I use Path Finder as
a Finder replacement, and so Finder doesn't even launch when I log in.
So now, if I try to do a 'tell application "Finder" of machine
"eppc://bla.bla.bla', I get a message saying this application is not
running. This is different than local Apple events, which will trigger
the application to be started if it's not already running.
So ideally I should check if the Finder is running before doing
anything. But to check if an application is running, I need the Finder:
tell application "Finder" of machine "eppc://bla.bla.bla"
using terms from application "Finder"
set FinderIsRunning to (application process "Finder" exists)
end using terms from
end tell
Which obviously doesn't help me. So I figured fine, I'll just always
start by launching the Finder, not even checking first. But to launch
an application remotely, I also need the Finder:
on launchRemoteFinder()
tell application "Finder" of machine "eppc://bla.bla.bla"
using terms from application "Finder"
open (application file id "MACS" as string)
end using terms from
end tell
end launchRemoteFinder
Now to get around all this I could ask System Events to do these things
for me. However, I would really really really like not to depend on
System Events, since it doesn't run automatically on a system, and so
might not be available.
So how do you check if the Finder is running and how do you launch it
if it's not, without using System Events? Is it possible?
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
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.