• 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: Path to syntax quest
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to syntax quest


  • Subject: Re: Path to syntax quest
  • From: Deivy Marck Petrescu <email@hidden>
  • Date: Mon, 17 Nov 2008 20:45:09 -0500


On Nov 17, 2008, at 18:58, Mark Walsh wrote:

Hi All

I am sure this is really easy but I just can't make it work.

What is the syntax to get the path to the current users "Documents"
folder?

Thanks in advance.
Oakley

I came across this a while ago, don't know if it's common knowledge, so I
thought I'd share it here:


An additional tip about “path to”: you don’t need to wait for us to add an
explicit enumeration, since it can also take any four-character string
that’s a FindFolder selector. Get your hands on a copy of Folders.h (part
of the Master Interfaces) and go nuts.


Look here

/Developer/SDKs/MacOSX10.4u.sdk/Developer/Headers/CFMCarbon/ CarbonCore/Folde
rs.h



Found this at http://face.centosprime.com/macosxw/applescript-path-to/

I sent a while ago a list with some four-character code for some folders.
I believe there were some four-character code not in this new list.
But here it is the available and unavailable codes from this most recent file.


Working:
macs MacintoshHD:System:
pref MacintoshHD:Users:user_name:Library:Preferences:
temp MacintoshHD:private:var:folders:AFOLDER:ANOTHER_FOLDER:TemporaryItems:
apps MacintoshHD:Applications:
root MacintoshHD:System:
asup MacintoshHD:Library:Application Support:
ppdf MacintoshHD:System:Library:Printers:PPDs:
issf MacintoshHD:Users:user_name:Library:Internet Search Sites:
fasf MacintoshHD:Users:user_name:Library:Scripts:Folder Action Scripts:
rapp MacintoshHD:Users:user_name:Library:Recent Applications:
rsvr MacintoshHD:Users:user_name:Library:Recent Servers:
kchn MacintoshHD:Users:user_name:Library:Keychains:
dlib MacintoshHD:Library:
impr MacintoshHD:System:Library:Printers:
ddoc MacintoshHD:Developer:ADC Reference Library:
issd MacintoshHD:Users:user_name:Library:Internet Search Sites:.Downloads:
cach MacintoshHD:Library:Caches:
pfrm MacintoshHD:System:Library:PrivateFrameworks:
cmpd MacintoshHD:System:Library:Components:
csrv MacintoshHD:System:Library:CoreServices:
mdoc MacintoshHD:Users:user_name:Movies:
pubb MacintoshHD:Users:user_name:Public:
apst MacintoshHD:Library:Audio:Presets:
bank MacintoshHD:Library:Audio:Sounds:Banks:
aplg MacintoshHD:Library:Audio:Plug-Ins:
kext MacintoshHD:System:Library:Extensions:
dplg MacintoshHD:Library:DirectoryServices:PlugIns:
fsys MacintoshHD:System:Library:Filesystems:
klay MacintoshHD:System:Library:Keyboard Layouts:
fbcx MacintoshHD:Users:user_name:Library:Indexes:FindByContent:
empz MacintoshHD:Library:StartupItems:
usrs MacintoshHD:Users:
sdat MacintoshHD:Users:Shared:
cprf MacintoshHD:Users:user_name:Library:Classic:
asav MacintoshHD:Users:user_name:Library:Autosave Information:
flow MacintoshHD:Users:user_name:Library:Workflows:
logs MacintoshHD:Users:user_name:Library:Logs:
ppan MacintoshHD:System:Library:PreferencePanes:


Not working:

sdsk
strs
prnt
shdf
ctrl
extn
ctrD
strD
odod
oded
sdev
walk
fall
thme
appr
fbcf
dspl
pplg
ccmm
carb
mtmp
devf
auth
rusf
rrel
blsf
cusf
logj
logp
stup



Deivy _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Path to syntax quest (From: Mark Walsh <email@hidden>)

  • Prev by Date: Re: Path to syntax quest
  • Next by Date: Re: Is it a way to change the number of "recent folders" displayed id the Open Dialog
  • Previous by thread: Re: Path to syntax quest
  • Next by thread: How to Archive/Compress an item or folder?
  • Index(es):
    • Date
    • Thread