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


dupe | 7 comments | Create New Account
Click here to return to the 'dupe' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
dupe
Authored by: DEMON on Jun 10, '08 10:08:24AM
This one was submitted by me. I didn't know your script when I wrote this. Your script looks a bit like mine. *It works only with Leopard; *Let's you put Front Row everywhere you want on your HDD; *Will switch your screen back after you quite Front Row; *And it will quite the proces Front Row. For who wants to compare the script here is the source code: set scriptname to displayed name of (info for (path to me)) as string try set path2frontrow to do shell script "defaults read " & quoted form of scriptname & " 'path2frontrow' " on error repeat set path2frontrow to POSIX path of (choose folder with prompt "Please select the folder that contains Front Row") do shell script "defaults write " & quoted form of scriptname & " 'path2frontrow' " & path2frontrow exit repeat end repeat end try tell application "System Events" to get name of every process if the result contains "Front Row" then do shell script "killall 'Front Row'" end if do shell script "cscreen -s 2 -p" delay 1 try do shell script "open" & " " & path2frontrow & "'Front Row.app'" on error repeat set path2frontrow to POSIX path of (choose folder with prompt "Please select the folder that contains Front Row") do shell script "defaults write " & quoted form of scriptname & " 'path2frontrow' " & path2frontrow do shell script "open" & " " & path2frontrow & "'Front Row.app'" exit repeat end repeat end try set question to display dialog "Press OK to switch displays" buttons {"Ok"} default button 1 set answer to button returned of question if answer is equal to "Ok" then do shell script "cscreen -s 2 -p;killall 'Front Row'" end if

[ Reply to This | # ]