Skip to main content
Solved

Apple Script Help


Forum|alt.badge.img+14

Hi, we are trying to add a status bar to one of our dialogs that pops up at login.

We use this for the status bar:

set n to 10

set progress total steps to n

repeat with i from 1 to n delay 1 set progress completed steps to i

end repeat

We use this for the text:

display dialog "..."

Unfortunately, we cannot seem to merge these two without breaking the status bar. Has anybody ever had success with this?

Thanks in advance,
Jared

Best answer by talkingmoose

Try this:

set n to 10

set progress total steps to n

repeat with i from 1 to n
    set progress additional description to "..."
    delay 1
    set progress completed steps to i
end repeat

You'll find some good documentation on Apple's Developer site. FYI, the status bar only appears for scripts saved as apps and then opened by double-clicking or using a File > Open command.

View original
Did this topic help you find an answer to your question?

talkingmoose
Forum|alt.badge.img+36

Try this:

set n to 10

set progress total steps to n

repeat with i from 1 to n
    set progress additional description to "..."
    delay 1
    set progress completed steps to i
end repeat

You'll find some good documentation on Apple's Developer site. FYI, the status bar only appears for scripts saved as apps and then opened by double-clicking or using a File > Open command.


Forum|alt.badge.img+14
  • Valued Contributor
  • November 29, 2016

@talkingmoose Thank you, exactly what I need.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings