Wednesday, July 18, 2018

#1 2003-06-05 01:50:25 am

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

progress indicator

How do I connect a progress indicator to a button so when the button is clicked, it runs the applescript for the button and starts the progress indicator? The button and the progress indicator are in the same window...

Applescript:

on clicked theObject
   do shell script "/usr/libexec/locate.updatedb"
end clicked


One mans trash is another mans treasure

Offline

 

#2 2003-06-05 09:00:28 am

andy_boretto
Member
Registered: 2003-01-02
Posts: 28

Re: progress indicator

How do I connect a progress indicator to a button so when the button is clicked, it runs the applescript for the button and starts the progress indicator? The button and the progress indicator are in the same window...

Applescript:

on clicked theObject
   do shell script "/usr/libexec/locate.updatedb"
end clicked



Here.  This is also in the "AppleScriptKit.asdictionary" in PB and in many of the example files

Applescript:


on clicked theObject
--MAKE THE PROGRESS BAR USE THREADED ANIMATION
set uses threaded animation of progress indicator "progressBar" of window "main" to true
--START THE PROGRESS BAR
   start progress indicator "progressBar" of window "main"
   do shell script "/usr/libexec/locate.updatedb"
--STOP THE PROGRESS BAR
stop progress indicator "progressBar" of window "main"
end clicked


I am not speaking for my employer.  These views are my own

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)