Re: Folder.h codes
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.