Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Script to delete comments in files?

Script to delete comments in files?
Thread Tools
Fresh-Faced Recruit
Join Date: Aug 1999
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
May 3, 2000, 11:44 PM
 
Would it be possible to create an Applescript with drag and drop capabilities that simply deleted any comments in the "Get Info" box of files dropped on it? I have no experience in writing scripts, only pressing the 'Record' button. =) Thanks.
     
Ster
Guest
Status:
Reply With Quote
May 4, 2000, 12:14 AM
 
this worked for me (under 9.0.4, but should work on older)
Code:
on open TheItemList repeat with TheItem in TheItemList tell application "Finder" activate set comment of TheItem to "" end tell end repeat end open
it works with whatever you drop on it (but it doesn't step through folder contents - hey, what do you expect from a script that i wrote in five minutes?! :-) )
-ster

p.s. - don't knock just hitting 'record'. i just recorded, and then tweaked it to be a droplet and to repeat with all the things that were dropped on it. gotta love the scriptable Finder! (and this board! and applescriptsourcebook, and...) - s

[This message has been edited by Ster (edited 05-04-2000).]
     
EnderWS  (op)
Fresh-Faced Recruit
Join Date: Aug 1999
Location: Seattle, WA, USA
Status: Offline
Reply With Quote
May 4, 2000, 12:21 AM
 
YES! It worked, thank you!

-=Manuel=-
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2