Hi there,
I wrote an Xcode/AS app a while back that utilized a progress bar but now it will not work in Xcode 3.2.6. It also appears that a lot has changed since the last time I used Xcode and I am pretty stumped on how to rewrite the app to work with interface builder. Can anyone provide a tutorial or some Xcode/AS code that utilizes a progress bar.
Basically the app will be uploading files to a server via a “do shell script” and I want to display the progress.
Thank you all very much! 
Have you looked at the tutorials on this site? Near the top of this page you can click the link for “Applescript Forums”. In that listing go to the “Unscripted” section to see the tutorials. You will find ones for this.
I found an old Studio tutorial, but not an AppleScriptObjc one.
Here are the steps to create a progress bar:
- Add one to your interface if there isn’t already
- Create a property for the progress bar in your App Delegate script
property progress : missing value
- In IB, control-click the blue cube representing your App Delegate, and drag from the circle next to “progress” (or whatever you named your property) to the progress bar.
- You can change how many steps your progress bar has in its Attributes pane of the Inspector.
THE CODE:
(In the App Delegate)
--every time you want to increment the progress bar, you use the following.
progress's incrementBy_(5.0)
--The number is the number of steps you want the bar to increment by
Of course, if you want an indeterminate progress bar, then try
progress's startAnimation_(me)
and
progress's stopAnimation_(me)
Hope this helps! 