Wow, this is strange...
Wow, this is strange...
- Subject: Wow, this is strange...
- From: "Levan, Jerry" <email@hidden>
- Date: Sun, 17 Feb 2002 22:19:55 -0500
- Thread-topic: Wow, this is strange...
Well, I jumped into MacOS X last week, gotta 933MHZ G4 with the 17 inch lcd, I had
been working on a Mac 7600 for the last 5.5 years.
I thought I would take another look at AppleScript, I have been away for about 1-2 years.
I down loaded Smile 2.3.0 and AppleScript 1.8.2b1 and tried running some of
my old scripts...ugh, disaster!
I have a script that converts a QIF file to a CSV file that mysteriously fails from time to
time with the message that it does not understand an invocation of one of the
handlers. I thought programs with the same input should get the same output ;(
One variation of the above program uses the old, old program "Progress Bar" to
track the progress of the process. This program fails generally with the message
that the program "Progress Bar" is not running. A shortened version is here:
tell application "Progress Bar"
activate
make new window with properties {Name:"Counting", Position:{100, 50}}
tell first progress bar of first window
set caption to "Numbers remaining:"
set minimum value to 0
set maximum value to 100
copy 0 to x
repeat while x b $ 100
set current value to x
set subcaption to 100 - x
copy x + 1 to x
end repeat
end tell
quit
end tell
When the above program is run, the dock icon bounces for a while and the error
message occurs before the bouncing stop. Is there a way to wait for the program
to be activated?
If I run the progress bar program and then run the above script it functions ok.
By the way, is there an explanation anywhere of how to use the dialog stuff in Smile?
Is there a more "modern looking" object that can be used to track "progress"?
Finally, is there a survival guide for MacOS X AppleScript programmers?
Getting back up to speed is going to be painful.
--Jerry
_______________________________________________
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.