• 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: Changing creator/type in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:44:24 +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.

  • Prev by Date: Re: Changing creator/type in OS X
  • Next by Date: Getting every event for a given day in Now Up-to-Date
  • Previous by thread: Re: Changing creator/type in OS X
  • Next by thread: Re: Changing creator/type in OS X
  • Index(es):
    • Date
    • Thread