• 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: Display Status Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Display Status Window
      • From: Darwin Zins <email@hidden>
References: 
 >Re: Display Status Window (From: Darwin Zins <email@hidden>)

  • Prev by Date: Re: Eudora users - Did you know that...
  • Next by Date: Re: Display Status Window
  • Previous by thread: Re: Display Status Window
  • Next by thread: Re: Display Status Window
  • Index(es):
    • Date
    • Thread