• 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
Re: Folder action to change file type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder action to change file type


  • Subject: Re: Folder action to change file type
  • From: Doug McNutt <email@hidden>
  • Date: Fri, 16 Oct 2009 15:05:41 -0600

It's not a folder action but it works with dropped files when saved as an application.

on open (argList)
	repeat with theAlias in argList
		set thePath to quoted form of POSIX path of theAlias
		--		display dialog thePath
		set creatorcode to "'R*ch'"
		--		display dialog creatorcode
		set command to "/Users/doug/bin/SetFile -t TEXT -c " & creatorcode & space & thePath
		--		display dialog command
		do shell script command
	end repeat
end open

The SetFile tool, case sensitive in Panther, is part of the developer tools but you can use it without the whole shebang by just placing a copy somewhere.

SetFile is actually an MPW, Macintosh Programmer's Workshop, tool which was ported to UNIX. On OS 9 I use it regularly in MPW. It would be easy as an MPW script to work through all of the files in a folder and MPW is now free from Apple - somewhere on Apple's site.

--
--> So are we going to celebrate the start of a new decade at the end of this year? Or do the tens start at in January 2011? <--
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Folder action to change file type (From: Bert Knabe <email@hidden>)

  • Prev by Date: Re: Mount volume
  • Next by Date: Re: Folder action to change file type
  • Previous by thread: Re: Folder action to change file type
  • Next by thread: Re: Folder action to change file type
  • Index(es):
    • Date
    • Thread