My experience with Carbon is limited, but I know how to do this with AppleScript, and I'm sure there's a way to trigger AppleScript's from Carbon/C++. A little Googling returned some promising results on the matter:
http://tishowicode.wordpress.com/200...ipt-in-carbon/
Anyway, here's how it's done with AppleScript:
You can also trigger AppleScripts from the shell:Code:tell application "Finder" activate open folder "path:to:folder" select item "filename" of window 1 end tell
Code:osascript -e 'tell application "Finder" activate open folder "path:to:folder" select item "filename" of window 1 end tell'




LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks