Re: Display Status Window
Re: Display Status Window
- Subject: Re: Display Status Window
- From: Darwin Zins <email@hidden>
- Date: Wed, 19 Mar 2003 15:18:08 -0600
I guess using the progress bar would be really cool.
When you save as application does it include the dialog or do you have
to include it separately?
When distributed does it require the user to download any other
software? The path to the dialog would depend on where the user
actually puts the application and presumably the dialog file. I can
assume the dialog file would be in the same directory as the script, so
how do I get the script's current path?
Can I set the maximum within code? What is the contextual menu?
Thanks,
Darwin
On Wednesday, March 19, 2003, at 08:44 AM, Emmanuel wrote:
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.
_______________________________________________
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.