• 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
Script to remove creator code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script to remove creator code


  • Subject: Script to remove creator code
  • From: Robert Nordvik <email@hidden>
  • Date: Tue, 22 Jun 2004 06:10:03 -0700

Sorry if this is a dumb (basic) question, however I am fairly new to AppleScript. I need to write a script, ultimately to be applied as a folder action, that removes the creator code from any files dropped into the folder.

In my attempts at getting a working script (not necessarily even a folder action yet,) I have come up with this non-working script.

set fileSelection to selection of application "Finder"
repeat with fileName in fileSelection
set fileName to fileName as alias
tell application "Finder"
set creator type of fileName to "" as text
end tell
end repeat

Upon running, I get the following message: "Finder got an error: Can't make some data into the expected type."

Can someone help me make a working script to remove the creator code? Then, hopefully I will be able to apply it is a folder action.

Thank you in advance!

-Rob
_______________________________________________
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.


  • Follow-Ups:
    • Re: Script to remove creator code
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: [ANN] XMail 2.0.1 beta
  • Next by Date: Script errors on different Mac
  • Previous by thread: [ANN] XMail 2.0.1 beta
  • Next by thread: Re: Script to remove creator code
  • Index(es):
    • Date
    • Thread