• 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
Creator Code Changing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creator Code Changing


  • Subject: Creator Code Changing
  • From: Hellum Timothy <email@hidden>
  • Date: Thu, 7 Dec 2000 23:18:08 -0500

Scott,

I have several scripts that work across our network, changing creator codes
of files resident on NT servers. The following work well when the files are
dropped onto the classic applet:

on open (theList)
tell application "Finder"
repeat with theItem in theList
if class of theItem is file then
set locked of theItem to false
end if
set fileName to name of theItem
set fileType to file type of theItem
set creatorType to creator type of theItem
set dialogResult to display dialog "File name: " & fileName
& return & ,
"File Type: " & fileType & return & "Creator Code: "
buttons ,
"OK" default button 1 default answer creatorType
set creatorType to text returned of dialogResult
set creator type of theItem to creatorType
end repeat
end tell
end open

And the above script can be altered to the following to change files
specifically to PhotoShop (or other, changing the creator code):


on open (theList)
tell application "Finder"
repeat with theItem in theList
if class of theItem is file then
set locked of theItem to false
end if
set fileName to name of theItem
set fileType to file type of theItem
set creator type of theItem to "8BIM"
end repeat
end tell
end open


>Scripters:

>Do any of you have a script that I could use to convert the file type and
>creator code for a number of files on an NT share using ResEdit or other
>tool. I am researching a couple of things and this would be useful
>information.
>
>TIA
>Scott

Hope this helps!

Timothy

_______________________________
Once again the thought strikes me:
Half is quite a bit of wit.
~ Tom Waits


  • Prev by Date: Re: Idle Help
  • Next by Date: Option-L and commas
  • Previous by thread: Re: globals schmobals (WAS Idle Help)
  • Next by thread: Option-L and commas
  • Index(es):
    • Date
    • Thread