Working with NSProgressBar with applescript and Xcode

So, the things I need help with, is putting a progress bar or a spinning wheel on a window (keep in mind this is an Applescript Application) on my apps window. It needs to be triggered

 on clicked theObject

and it needs to be stopped and disappear once my script is finished executing.

ALSO if someone could develop a quick apple script that includes the following:

1: on clicked theObject opens a view to select files and/or drag and drop onto the WINDOW VIEW (not drag and drop to icon on the dock.)
2: a second window that once you add files, holds the files you added (like a queue)
3: on the queue window have

 buttons {"Add more Files","Move Files To Trash"}

AND EXTRA if you know how to make an applescript dropplet, that once you drag a file or files, it have a menu pop up with the queued files, OR a menu right on the dock. to then select the action for the files.

THANKS SO MUCH

Screenshot of what Im trying to accomplish with my first question (NSProgressbar)

Credits in my app will be given if you’d like :wink:

AN SOOPER SOOPER EXTRA, ANYONE KNOW HOW TO ADD A REGISTRATION KEY TO AN APP? LIKE A SERIAL KEY? AND MAYBE HAVE IT CONNECT TO A DATABASE :O?

http://img294.imageshack.us/img294/5509/93479568.png

hey bro well sorry for the late reply but i hope its not to late???

here are the steps you’ll need for the progressbar

This is the script to start the progressbar


-- NAME "spinner" THE NAME YOU HAVE GIVEN IT IN APPLESCRIPT INSPECTOR AN THEN LINK IT TO THE APPLESCRIPT FILE
-- NAME "main" THE NAME YOU HAVE GIVEN IT IN APPLESCRIPT INSPECTOR AN THEN LINK IT TO THE APPLESCRIPT FILE
-- This Works For Both Progressbars!
tell progress indicator "spinner" of window "main"
			set uses threaded animation to true
(*			
set indeterminate to true
-- ^^^^^^^ THATS ONLY IF YOU WANT TO CONTIUESALLY SPIN THE BAR 
*)			
set minimum value to 0
			set maximum value to 100
			set content to 0
			start
		end tell

This is the script to stop the progressbar


-- NAME "spinner" THE NAME YOU HAVE GIVEN IT IN APPLESCRIPT INSPECTOR AN THEN LINK IT TO THE APPLESCRIPT FILE
-- NAME "main" THE NAME YOU HAVE GIVEN IT IN APPLESCRIPT INSPECTOR AN THEN LINK IT TO THE APPLESCRIPT FILE
-- This Works For Both Progressbars!
tell progress indicator "spinner" of window "main"
			set uses threaded animation to true		
set minimum value to 0
			set maximum value to 1
			set content to 0
			stop
		end tell

Hope This Helps,