I have a small AppleScript which I would like to to put into a user interface so I have installed Xcode 13.4.1 with a new AppleScrip Project
After about 5 days trying to work out why I cannot control drag say a button to the Deligates Cube because this is a bug I nearly gave up but I manged to find a work around for that.
The main headache I can forsee is going to be adding my AppleScript progress bar into Xcode so i was wondering if anyone can help me at least understand how to wire this up.
I have added a progress bar to the UI from the Libray. I had 2 choices here so I chose Determinate Progress Bar. My goaal is to try and get the progress bar on the UI to update.
This is my current AppleScript for the progress Bar which I am trying to get into Xcode.
Appreciate any help on this.
After about 5 days trying to work out why I cannot control drag say a button to the Deligates Cube because this is a bug I nearly gave up but I manged to find a work around for that.
The main headache I can forsee is going to be adding my AppleScript progress bar into Xcode so i was wondering if anyone can help me at least understand how to wire this up.
I have added a progress bar to the UI from the Libray. I had 2 choices here so I chose Determinate Progress Bar. My goaal is to try and get the progress bar on the UI to update.
This is my current AppleScript for the progress Bar which I am trying to get into Xcode.
AppleScript:
use AppleScript version "2.4" -- Yosemite (10.10) or later
use framework "Foundation"
use scripting additions
set progress total steps to 100
set progress completed steps to 0
set progress description to "Getting Things Ready"
delay 1
set progress description to "Please Wait..."
repeat with i from 1 to 100
--Do stuff here...
set progress completed steps to i
set progress additional description to "Updating Please Wait"
delay 1
end repeat
set progress completed steps to numberOfImages
Appreciate any help on this.
Last edited: