• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Setting file comments (Finder info comments) in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Finding the oldest date in a list
  • Next by Date: Add to startup items
  • Previous by thread: Re: ID CS book content
  • Next by thread: Re: Setting file comments (Finder info comments) in OS X
  • Index(es):
    • Date
    • Thread