Re: Changing creator/type in OS X
Re: Changing creator/type in OS X
- Subject: Re: Changing creator/type in OS X
- From: Philippe GRUCHET <email@hidden>
- Date: Mon, 10 Mar 2003 03:41:51 +0100
From: "Marc K. Myers" <email@hidden>
I wrote a script to change the creator and type of files in OS X.
This was the easiest thing in the world in OS 9 but I can't get it to
work in 10.2.4:
[snip]
Mark, you can start with this. Works fine 'as is' under 10.2.4 ;-)
-- start of script
set thefile to alias "pathname_of_your_file"
tell application "Finder"
set {thetype, thecreator} to {thefile's file type, thefile's creator
type}
display dialog ("File name: " & thefile's name) & return & "File type:
" default answer thetype
set thetype to result's text returned
display dialog "Creator: " default answer thecreator
set thecreator to result's text returned
set {thefile's file type, thefile's creator type} to {thetype,
thecreator}
end tell
info for thefile
-- end of script
Kind regards,
Philippe Gruchet/SVM Mac
VNU Publications France
http://svmmac.vnunet.fr
_______________________________________________
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.