Skip to main content
Solved

Apple Script Help

  • November 29, 2016
  • 2 replies
  • 20 views

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.

2 replies

talkingmoose
Forum|alt.badge.img+36
  • Community Manager
  • Answer
  • November 29, 2016

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
  • Author
  • Valued Contributor
  • November 29, 2016

@talkingmoose Thank you, exactly what I need.