Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Fez Vrasta

macrumors member
Original poster
Mar 23, 2015
63
2
Hello, I'm kinda new to Mac, It's my first one and I've bought it about 3 months ago.

I've set some wallpapers with the auto-switch feature every 30 minutes and I've found an Applescript to skip a wallpaper if I don't like it or I'm bored of.

This is the script:

Code:
property theSwitch : 0
if theSwitch = 0 then
	tell application "System Events"
		tell current desktop
			set change interval to 1801.0
		end tell
	end tell
	set theSwitch to 1
else
	tell application "System Events"
		tell current desktop
			set change interval to 1800.0
		end tell
	end tell
	set theSwitch to 0
end if

When I run it trough Automator it works great and the wallpaper changes. I've then created an Automator service with `No input` and in the Shortcuts settings I've set it to CMD + SHIFT + T.

I see it in the services menu of every app but even if I use the shortcut or if I click on it using the menu, nothing happens.

What am I doing wrong?

Thanks!
 
I've tried with several hotkeys and even running it from the menu...
 
When you built your Automator workflow, what action did you select?
Execute Applescript or Run Applescript

I just tried it using Run Applescript and changed the keyboard shortcut to something different to avoid conflicts and it works from both the menu and shortcut.
 
@dZp thanks! Run Applescript did the trick!

Great, now it works perfectly :)
 
You'll notice that the Execute Applescript action applies to ARD.
This action will execute the provided AppleScript script on the remote computers.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.