Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 328 Bytes
var finder = SBApplication.application_("Finder");
// notice that the @ is making the string an NSString instance.
// the fileURL method is part of the JSTalk "Extras" categories
var url = @"/Volumes/srv/Users/gus/Desktop/foo.pict".fileURL();
var item = [[finder items] objectAtLocation:url];
item.comment = "Hello World!";
Something went wrong with that request. Please try again.