Forwarded it to loco.
Haven't heard from him in a while, so i sent it to him via e-mail.
Macintosher, on Sep 9 2009, 10:31 AM, said:
dafootballer, on Sep 15 2009, 05:55 AM, said:
cd /usr/bin
sudo mv quartz-wm quartz-wm.bak
sudo lipo -thin i386 quartz-wm.bak -output quartz-wm
do shell script "VERSIONER_PERL_PREFER_32_BIT=yes /Applications/CrossOver\\ Wrapper.app/Contents/MacOS/CrossOver\\ Chromium"
set desktoppath to "/"
set spotlightquery to "\"kMDItemFSName == 'CX Pro Wrapper 8.0.app\""
set command to "mdfind -onlyin " & desktoppath & " " & spotlightquery
set founditems to paragraphs of (do shell script command)
set the input to the result as Unicode text
set the result to ""
set nextPart to ""
on urlToPOSIXPath(theURL)
return do shell script "python -c \"import urllib, urlparse, sys; print urllib.unquote(urlparse.urlparse(sys.argv[1])[2])\" " & quoted form of theURL
end urlToPOSIXPath
to searchReplace(thisText, searchTerm, replacement)
set AppleScript's text item delimiters to searchTerm
set thisText to thisText's text items
set AppleScript's text item delimiters to replacement
set thisText to "" & thisText
set AppleScript's text item delimiters to {""}
return thisText
end searchReplace
set the_url to input
set value to searchReplace(urlToPOSIXPath(the_url), "/Macintosh HD", "")
set new_value to searchReplace(value, " ", "\\ ")
set nextPart to the result
do shell script ("VERSIONER_PERL_PREFER_32_BIT=yes " & nextPart & "/Contents/MacOS/CrossOver\\ Chromium") as Unicode text
Quote
0 members, 0 guests, 0 anonymous users