Hey folks,
I'm wondering if anyone can help me with this, I have pretty simple script to un-minimize all windows of formost application.
tell application (path to frontmost application as text)
try
set miniaturized of every window to false
on error errorMessage
display alert errorMessage
try
set collapsed of every window to false
on error errorMessage
display alert errorMessage
reopen
end try
end try
end tell
I bind this script to Hotkey (I tried both "Run script" /usr/bin/osascript and "Run NSAppleScript"), but It's not working as in AppleScript Editor.
For example for Finder with Alfred workflow, I'm getting error message "Finder got an error: Can’t set |collapsed| of every window to false." That is not happening when I'm testing this script in AppleScript Editor..
OSX 10.9
Alfred 2.1