this is the only part i need help with i want the progress bar to move plus change text
set contents to 4
-- This Not Working Below!!
set contents of text feild "ffmpeg" to "/ffmpeg"
-- THAT PART ^^^^^^^
delay 1.0
set contents to 100
this is the only part i need help with i want the progress bar to move plus change text
set contents to 4
-- This Not Working Below!!
set contents of text feild "ffmpeg" to "/ffmpeg"
-- THAT PART ^^^^^^^
delay 1.0
set contents to 100
Hi,
in AppleScript Studio all UI elements must be fully referenced
set contents of text field "ffmpeg" of window "whatever" to "/ffmpeg"
If you’re saying that set contents to 4 is working then you misses the tell block around it to post that here.
probably something like this.
tell window "windowname"
tell progress indicator "progress"
set contents to 4
--here your set contents of text field doesn't work because you're scoping is set to the indicator
end
--if you place it here it would work
set contents of text feild "ffmpeg" to "/ffmpeg"
tell progress indicator
set contents to 100
end tell
end
a more nicer piece of code would be
tell window "windowname"
set contents of progress indicator "progress" to 1
set contents of text feild "ffmpeg" to "/ffmpeg"
set contents of progress indicator "progress" to 100
end
use a tell block for multi line code to an object (in this case the window) and for single line commands to an object don’t use a tell block.