Where can find the Creator Codes ...?

Hi folks,

I've spent 30 mins to locate creator and document codes at the Apple's website but still cannot find them.

Let me know if you happen to know the url from which I can download.

Thanks for your help in advance.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

There isnt a list of types/creators. You have to find them via the document or app theyre attached to. I will post an applescript that you can make (make it a running app that you can drop documents on) and it will tell you the creator and type of the file. There are also several programs at www.versiontracker.com that will let you view the codes. FileBuddy is one that comes to mind. Anyway heres the applescript.

-- dropping a file(s) on a script application
-- sends an open command along with a list
-- of aliases for the dragged file(s). This
-- handler executes upon the drop.
on open filelist
      -- work through each file dragged with repeat in list form
      repeat with oneFile in filelist
            -- info for command in file commands addition
            set allInfo to info for oneFile
            -- set Boolean
            set isFolder to allInfo's folder
            -- call subroutine to extract name of file or folder
            set fileName to nameFromPath of (oneFile as string) given isFolder:isFolder
            if fileName is not "" then
                  -- assemble and display appropriate messages
                  if isFolder then
                        display dialog "“" & fileName & ¬
                              "” is a folder." buttons {"Okeedokee"} default button 1
                        set details to return & "Creator: " & ¬
                              allInfo's file creator & return & ¬
                              "File Type: " & allInfo's file type
                        display dialog "Info for “" & fileName & "”:" & details ¬
                              buttons {"Cancel", "OK"} default button 2
                        tell application "Finder"
                              display dialog "Enter the new creator for this file:" buttons {"OK"} default button 1 default answer "SIT!"
                              set creator type of file oneFile to result's text returned
                              display dialog "Enter the new type for this file:" buttons {"OK"} default button 1 default answer "SITD"
                              set file type of file oneFile to result's text returned
                        end tell
                  end if
            end if
      end repeat
end open

-- subroutine to extract file or folder name
-- from a complete path name.  Uses isFolder
-- labeled parameter and variable as Boolean switch.
on nameFromPath of thePath given isFolder:isFolder
      if thePath = "" then return ""
      -- save current settings
      set oldDelims to AppleScript's text item delimiters
      -- we need colons to take apart the path
      set AppleScript's text item delimiters to ":"
      if isFolder then
            -- don't want the last colon
            set fileName to text item -2 of thePath
            -- no colon text item to worry about
            set fileName to text item -1 of thePath
      end if
      -- restore prior settings
      set AppleScript's text item delimiters to oldDelims
      return fileName
end nameFromPath

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.