|
|
dupe
This is a duplicate hint. I know, because I wrote this back in 2005.
http://www.macosxhints.com/article.php?story=20051201230156840&query=front%2Brow%2Bcscreen At least your program is free.
dupe
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
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|