• 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: Run AppleScript in the background (hide window)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run AppleScript in the background (hide window)


  • Subject: Re: Run AppleScript in the background (hide window)
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 13 Feb 2008 08:57:30 -0800

If you're going to use GUI Scripting on System Preferences, you're going to have to launch the application, as should be obvious. The questions are, (a) can you make it not show a window, and (b) can you make Dashboard not de-activate?

(a) is easy in Leopard -- AppleScript launches applications hidden by default. (I'm not sure if GUI Scripting will work on a hidden window, so you may be stuck anyway, unless you want to try Michelle's move-the- window-mostly-off-screen trick.) (b) may be trivial as well, since Leopard Dashboard doesn't seem to mind nearly so much about applications launching. In fact, it doesn't seem to mind at all. I tried (without TextEdit running) running the script 'delay 10; activate application "TextEdit"' and then activating Dashboard. I saw TextEdit appear, but Dashboard stayed put.


--Chris Nebel AppleScript Engineering

On Feb 12, 2008, at 11:26 PM, Mathieu Thouvenin wrote:

Mac OS X 10.5 or Mac OS X 10.4?

I'm on 10.5.
I'll try ed's solution, but it's not just the fact that I don't want the window to appear, it's that I don't want the application to open, so it stays in the Dashboard while executing the AppleScript. I don't know if it's possible or not?


Thanks for you help!

Mathieu Thouvenin
http://www.mathieuthouvenin.com/

On 12 févr. 08, at 23:08, John C. Welch wrote:

On 02/12/2008 23:58 PM, "Mathieu Thouvenin" <email@hidden >
wrote:


If you're doing network settings, chances are, you don't need to use
GUI
scripting at all, there are a number of ways to skin THAT cat.

No, I actually do other things than that, like changing the settings of Time Machine, and for that, there's no other way than that using the GUI :(


Mac OS X 10.5 or Mac OS X 10.4?
--
Paene meracus malorum sum
(I am nearly pure evil)


_______________________________________________
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

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Run AppleScript in the background (hide window)
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Run AppleScript in the background (hide window) (From: "John C. Welch" <email@hidden>)
 >Re: Run AppleScript in the background (hide window) (From: Mathieu Thouvenin <email@hidden>)

  • Prev by Date: Re: Help with understanding matrices
  • Next by Date: Re: Run AppleScript in the background (hide window)
  • Previous by thread: Re: Run AppleScript in the background (hide window)
  • Next by thread: Re: Run AppleScript in the background (hide window)
  • Index(es):
    • Date
    • Thread