Question

I'm trying to edit a 3rd party script written in AppleScript (OAS...I think) to dim the volume after showing changes. I've tried changing the opacity & switching to a transparent image using a repeat loop & current date without success.

set T1 to seconds of (current date)
set T2 to T1 + 5
repeat with T1 from T2 to T2
   set opacity to 0 (*or do shell script...)
end repeat

This should work I'm just struggling with implementation.

Was it helpful?

Solution

Use the delay command. It's very simple: it simply delays by the given time in seconds. Example: delay 5 would delay for 5 seconds.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top