Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'do shell script?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
do shell script?
Authored by: trosberg on Jan 31, '09 04:12:46AM
Now I think I understand your aim.
To toggle to the small user controls window in iTunes:
tell application "iTunes"
	activate
	tell application "System Events" to keystroke "z" using {command down, control down}
end tell
To make this toggle work, you must have "Enable access to assistive devices" on, in System Preferences, in Universal Access.

[ Reply to This | # ]
do shell script?
Authored by: awado on Jan 31, '09 10:22:39AM
Did you try it? It doesn't show the iTunes Window. I tried various commands. The only one that works is:

tell application "iTunes"
	(...)
	set minimized of front window to true
end tell
do shell script "open /Applications/iTunes.app"


[ Reply to This | # ]
do shell script?
Authored by: trosberg on Feb 03, '09 11:40:14AM

I did try it. And now, after trying your code submitted above, it seems you were after what I thought. Have luck.



[ Reply to This | # ]