Hi. I am working on my first interface experiment with applescript studio, and I am having a few issues… The script currently just fills a progress bar up and generates random numbers above it…
I am finding is that when my app runs and the progress bar is filling-- for some reason right after I launch it, the Finder is activated and therefore the status bar is gray… When the bar fills completely then it switches to my app-- but at that point… its done… So------
I’ve been trying to do all kinds of stuff like set frontmost to true, and "activate application
‘addressbook2pine’ … but it seems like nothing is doing the job…
Here’s the code (which wont do you much good since you dont have my mainmenu.nib file… )
on opened theObject
tell window "addressbook2pine"
set x to 500
set y to 0
set maximum value of progress indicator "statusbar" to x
tell progress indicator "statusbar" to animate repeat until y = x
set y to y + 1
set the contents of text field "textblock" to random number
tell progress indicator "statusbar" to increment by y
end repeat
end tell
quit application
end opened
-patrick