Re: Display Status Window
Re: Display Status Window
- Subject: Re: Display Status Window
- From: Emmanuel <email@hidden>
- Date: Wed, 19 Mar 2003 15:44:39 +0100
Once for all, do the following:
- Scripts > Dialogs > new dialog
- drop "new editable text" from the Dialog components palette to the new dialog
- save new dialog to disk, provide name such as "Progress"
In your script, write the following:
------------------------
set theDlog to open thePath -- thePath is the path to the "Progress"
dialog file -- to open the dialog
[repeat]
set contained data of item 1 of theDlog to "2/5" -- set the text of
the editable text field
smilepause 0 -- provide resources to refresh the display, call it
each time you change the display
[end repeat]
delete theDlog -- disposes the dialog
------------------------
With very little effort you can use the progress bar instead: you set
its minimum and maximum with the contextual menu, and you change its
display by setting in the script its contained data to any integer in
the interval (still, call "smilepause" to force the graphical update).
Tell me if I summarized too much.
Emmanuel
At 8:04 AM -0600 19/03/03, Darwin Zins wrote:
I am using Smile.
Darwin
On Wednesday, March 19, 2003, at 01:52 AM, Emmanuel wrote:
At 2:18 PM -0600 18/03/03, Darwin Zins wrote:
Is there a way in applescript to display a status window, so for
example while this script is sync'ing it can say:
Syncing 5 of 20
If you can use Smile, that's straightforward.
Emmanuel
_______________________________________________
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.
Darwin Zins
Check out ZOSXSyncAB to sync your Zaurus and MacOSX Address Book at
http://www.goldengate.net/~dzins
_______________________________________________
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.
_______________________________________________
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.