Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: A script to add write privileges to Mail attachments Apps

When you drag and drop attachments from Mail.app in Panther, the attachments are saved as read only (see this hint). I wrote an AppleScript to solve this problem.

To use it, simply save the code below in a script, and then attach it as the folder action on the destination folder where you usually drag and drop attachments (in my case, this is the Desktop folder).


on adding folder items to this_folder after receiving these_items
  tell application "Finder"
    repeat with i from 1 to number of items in these_items
      if the owner privileges of item i of these_items is read only then
        set owner privileges of item i of these_items to read write
      end if
    end repeat
  end tell
end adding folder items to
From now on, whenever you drag and drop a read-only file to the destination folder, it will be converted to read-write by the owner. Obviously, if you habitually drag and drop a lot of read only items to the Desktop, and you intend to keep them read only, you should not use this script.
    •    
  • Currently 2.14 / 5
  You rated: 3 / 5 (7 votes cast)
 
[9,410 views]  

10.3: A script to add write privileges to Mail attachments | 1 comments | Create New Account
Click here to return to the '10.3: A script to add write privileges to Mail attachments' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: A script to add write privileges to Mail attachments
Authored by: osxpounder on Dec 19, '03 02:23:04PM

Now that you mention it, I see that I appreciate the fact that attachments are read-only by default; that means I won't accidentally alter an attached file, forget that I did so, and later mistakenly believe that the altered version is associated with the original sender. Good thinking, Apple!


---
--
osxpounder



[ Reply to This | # ]