Re: Name Conflicts
Re: Name Conflicts
- Subject: Re: Name Conflicts
- From: Gary Lists <email@hidden>
- Date: Thu, 12 Jun 2003 14:44:07 -0400
On or about 6/12/03 1:03 PM, Paul Berkowitz wrote:
>
Here's a more interesting example that will display the current increment
>
with a bottom message that shows the current increment number and the name
>
of the item being incremented. If the application is returning Unicode or
>
styled text as 'theName' you need to convert that to plain text first so I
>
include that too. with an extra handler
Excellent sample. I like that OSAX. Are any of you folks using it in
scripts...just curious...?
Also, one slight change in the posted script to match up the parameter count
is needed, to match up the parameter count.
>
--------------------------------------
>
property currentTotal : 0
>
global aBar
>
>
set aBar to create progress indicator with properties {maximum:10}
>
>
tell application "FileMaker Pro"
>
>
set topMessage to "A top message that doesn't change"
>
>
set n to (count someList) -- or 10
>
repeat with i from 1 to n
>
--do stuff
>
set theName to "[name of current item]"
either change this:
>
my UpdateProgressBar(i, n, topMessage, theName)
to:
my UpdateProgressBar(i, n, topMessage, theName, currentTotal)
(but it's a property so you don't need to...)
>
set currentTotal to currentTotal + 1
>
end repeat
>
>
end tell
>
>
close progress indicator aBar
>
or change this:
>
to UpdateProgressBar(i, n, topMessage, theName, currentTotal)
to:
to UpdateProgressBar(i, n, topMessage, theName)
--------------------------
Thanks for the script sample, Paul.
--
Gary
MacOS 9.1 / "9 is Fine"
OMM: osa:AS 183 / osa:JS 103 / FM 55 / BB601 / Smile 188
______________________________________________________________
Please reply directly to the list.
Incoming messages are auto-deleted. (It's anti-spam, that's all.)
_______________________________________________
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.