Is there a function that works like display dialog - but one that can simply display a value and have the script keep running and not wait for the user to respond? I’d like to use this for indicating progress in a script.
Just need a simple window to open up that can display text and update itself when the script says to.
I don’t think you have to buy salling to use this part of it,
But you do if want the other options in salling.
For the money though salling is worth it.
This is called a “notification” and there are quite a few ways to do it. FastScripts users have a built-in notifier. Growl is a popular alternative and is getting increasingly common. LanOSD is another. I’ve used them all, and they all work quite nicely.
Oops. Several of these have dropped by the wayside. There was a nice one called iNotify some time ago that has disappeared, and it even had scriptable buttons, but when I looked for it, the site was gone.
Elegant, but temporary and more icon-centric are QuickSilver notifications
(staying 3 seconds):
QSfAppNotify("Hello Big Boy", "The Boss:", true)
on QSfAppNotify(theString, salut, fAppIcon)
tell application "System Events"
if fAppIcon = true then
set pathToApp to (application file of (some process whose frontmost is true))
else
set pathToApp to (application file of (process "Quicksilver"))
end if
set IconRes to POSIX path of pathToApp
set sudName to (name of startup disk)
end tell
set sudNum to number of characters of sudName
set a to (theString) as string
set b to salut
tell application "Quicksilver" to show notification b text a image name IconRes
end QSfAppNotify
It’s the 3 seconds that has always deterred me. I’ve been using QS since shortly after it came out, but until they allow me to set the time, I keep using FastScripts or Growl for most notifications.
Since Stickies windows can be translucent, I was just wondering if perhaps they could be used as notifications as well. Something like: (not real code)
tell application “Stickies”
open file_name_here
etc., etc.
or:
tell application “Stickies”
launch
create new window
tell application “System Events”
(then GUI script the info on the clipboard & paste it into the new Stickie)