Setting file comments (Finder info comments) in OS X
Setting file comments (Finder info comments) in OS X
- Subject: Setting file comments (Finder info comments) in OS X
- From: "Ramakrishna Kondapalli" <email@hidden>
- Date: Thu, 20 May 2004 13:30:34 +0530
- Thread-topic: Setting file comments (Finder info comments) in OS X
Hi,
I am calling a Applescript to set the comments of a file(OS X file info
comments) from Cocoa. The code is pasted below. It is working fine. Now
i want to make the comments text as non editable. How can i do this?
NSString * comment = [NSString stringWithFormat:@"Test comment"];
NSString *scriptString = [NSString stringWithFormat:@"tell application
\"Finder\" to set comment of file \"Users:usr1:Desktop:test.sh\" to \"%@
\"",comment ];
NSAppleScript *script = [[[NSAppleScript alloc]
initWithSource:scriptString] autorelease];
[script executeAndReturnError:nil];
Thanks & Regards,
Ramakrishna
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.