Re: Fwd: Bring Finder to Front via ssh?
Re: Fwd: Bring Finder to Front via ssh?
- Subject: Re: Fwd: Bring Finder to Front via ssh?
- From: email@hidden
- Date: Wed, 7 Aug 2002 12:28:21 -0700
What you want is osascript.
on OSX, "man osascript" in the Terminal will show you how to use it.
What you should be able to do (but I can't get to work):
osascript -e "tell application \"Finder\" to activate"
What works:
- save a script file that contains one line:
tell application "Finder" to activate
- on the terminal, use
osascript /path/to/script/you/just/saved
I don't know what's up with the -e option; it doesn't want to recognize
paired ""s...
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
-------------------------------------------------------
Howdy,
This question is from someone on another list. Since I'm not familiar
with OS X yet, I thought I'd run it by this list.
>
Put on your thinking caps, kids. Here's a stumper. Can I log into a
>
Mac running OS X via ssh and tell it, somehow, to bring Finder to
>
the front? This would be the equivalent of clicking on the desktop.
>
>
I wonder if I could write an AppleScript that told Finder to
>
"Activate" and then call that script via a terminal session....
>
>
Anyone ever try something like this?
_______________________________________________
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.