Re: Run AppleScript in the background (hide window)
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