• 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: interesting failure in 9 setting creator of OSX file with
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: open for access file pathstring with write permission
  • Next by Date: Controlling Display with applescript?
  • Previous by thread: Re: [ADMIN] Sorry for the dups
  • Next by thread: Re: interesting failure in 9 setting creator of OSX file with
  • Index(es):
    • Date
    • Thread