View Single Post
Quote:
Originally Posted by emvac1 View Post
a keyboard shortcut to put a project in «on hold» status
You could assign a shortcut to a script like this, which toggles selected projects back and forth between active and on hold status.

Code:
tell application id "OFOC"
	tell front document window of front document
		repeat with oPanel in {content, sidebar}
			set refProjects to (a reference to (selected trees of oPanel where class of its value is project))
			set lngProjects to (count of refProjects)
			if lngProjects > 0 then exit repeat
		end repeat
		
		if lngProjects < 1 then return
		if status of value of first item of refProjects is active then
			set status of value of refProjects to on hold
		else
			set status of value of refProjects to active
		end if
	end tell
end tell