• 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: Folder.h codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder.h codes


  • Subject: Re: Folder.h codes
  • From: Philippe Gruchet <email@hidden>
  • Date: Tue, 7 Jan 2003 06:33:02 +0100

From: Paul Skinner <email@hidden>

The folders.h document is, of course, also on your own box as well as C. Nebel's iDisk.
"System:Library:Frameworks:CoreServices.framework:Versions:A:Frameworks :CarbonCore.framework:Versions:A:Headers:Folders.h"
A rudimentary parsing script for it ( parseFolderhdoc.sit ) is on my iDisk.
http://homepage.mac.com/paulskinner/FileSharing2.html
For those wanting to avoid having to dl and run it, it currently returns 83 four letter codes and their descriptions.

[snip]

Many thanks for this impressive and so useful list, Paul!

The 4 chars codes really work fine here, under OSX2.3.
Ex, to make a file called "foo" in the Documents folder:

-- Start of script

set theDest to path to At Ease documents folder as string

tell application "Finder"
make at theDest with properties {name:{"foo"}, file type:"ttro", file creator:"ttxt"} new file
set x to theDest & "foo"
reveal x
end tell

-- Becomes:

set theDest to path to "docs" as alias

tell application "Finder"
make at theDest with properties {name:{"foo"}, file type:"ttro", file creator:"ttxt"} new file
set x to theDest & "foo" as text
reveal alias x
end tell

-- Or just a bit shortcut:

tell application "Finder" to make at (path to "docs" as alias) with properties {name:{"foo"}, file type:"ttro", file creator:"ttxt"} new file
tell application "Finder" to reveal result
-- 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: path to At Ease
  • Next by Date: Path To commands
  • Previous by thread: Re: droplet
  • Next by thread: Path To commands
  • Index(es):
    • Date
    • Thread