Re: finder scripting- two issues
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