• 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: Fwd: Bring Finder to Front via ssh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Fwd: Bring Finder to Front via ssh?
      • From: garbanzito <email@hidden>
  • Prev by Date: Re: Fwd: Bring Finder to Front via ssh?
  • Next by Date: Re: Scripting EIMS over a LAN
  • Previous by thread: Re: Fwd: Bring Finder to Front via ssh?
  • Next by thread: Re: Fwd: Bring Finder to Front via ssh?
  • Index(es):
    • Date
    • Thread