• 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: finder scripting- two issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finder scripting- two issues


  • Subject: Re: finder scripting- two issues
  • From: Doug McNutt <email@hidden>
  • Date: Sat, 10 Nov 2007 11:54:28 -0700

At 13:17 -0500 11/10/07, Bob Cuilla wrote:
>First I would like to set the creator type to a specific string "XXXX"  or whatever.

This is a droplet I use regularly. Just drop the icon for the "selected" file onto it.

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 comes with the developer tools but it is self standing and can be installed anywhere in $PATH as set by $HOME/.MacOSX/environment.plist. Caution: it can be case sensitive in some shells that preprocess available tools.

--

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
 _______________________________________________
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: 
 >finder scripting- two issues (From: Bob Cuilla <email@hidden>)

  • Prev by Date: Re: finder scripting- two issues
  • Next by Date: width of only the main screen
  • Previous by thread: Re: finder scripting- two issues
  • Next by thread: width of only the main screen
  • Index(es):
    • Date
    • Thread