On 20 Jun 2011, at 12:16, Rick C. wrote:

> Sorry I just meant a way to launch that window similar to the way this will 
> reveal an item in Finder:
> 
> [[NSWorkspace sharedWorkspace] selectFile:filePath 
> inFileViewerRootedAtPath:nil];
> 
> If Applescript is the only way then I guess I'll have to give it a try.  
> Thanks to you both!
> 
Insight is easily available. Fire up AppleScript editor hit record then select 
Finder and display get info window:
You should get something like the following:

tell application "Finder"
        activate
        open information window of document file "cspsol-data-big.txt" of 
folder "Jonathan" of folder "Users" of startup disk
        set position of Finder window 1 to {850, 191}
end tell

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com

> 
> On Jun 20, 2011, at 6:50 PM, Graham Cox wrote:
> 
>> 
>> On 20/06/2011, at 6:48 PM, Rick C. wrote:
>> 
>>> 'm assuming there must be a way to call the standard Finder get info window 
>>> in cocoa
>> 
>> 
>> Seems a strange assumption. How do you "call" a window anyway?
>> 
>> --Graham
>> 
>> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/jonathan%40mugginsoft.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to