Re: interesting failure in 9 setting creator of OSX file with
Re: interesting failure in 9 setting creator of OSX file with
- Subject: Re: interesting failure in 9 setting creator of OSX file with
- From: Philippe GRUCHET <email@hidden>
- Date: Thu, 16 Jan 2003 03:21:35 +0100
From: Charles Arthur <email@hidden>
tell application "Finder"
set thetype to file type of thefile
set thecreator to creator type of thefile
display dialog ("File name: " & name of thefile as string) & return
& "File type: " default answer thetype
set thetype to the text returned of the result as string
display dialog "Creator: " default answer thecreator
set thecreator to the text returned of the result as string
set the file type of file thefile to thetype
set the creator type of file thefile to thecreator
end tell
Comments?
Just a bit shortened, it's all I found:
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 {file thefile's file type, file thefile's creator type} to
{thetype, thecreator}
end tell
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.