Thursday, July 19, 2018

#1 2010-06-03 08:42:54 pm

goodrunb
Member
Registered: 2010-05-13
Posts: 5

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

Applescript:

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 

Applescript:

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 yikes?






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

Offline

 

#2 2010-12-08 05:35:00 am

AudialRedux
Member
Registered: 2010-12-08
Posts: 45

Re: Working with NSProgressBar with applescript and Xcode

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

Applescript:


-- 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

Applescript:


-- 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,

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)