Re: Library confusion
Re: Library confusion
- Subject: Re: Library confusion
- From: David Gregg <email@hidden>
- Date: Wed, 08 Oct 2014 12:39:31 -0600
Hi Luther,
There might be a bug but you can get around it by avoiding the Finder.
The path to most of the common important folders, as hinted by Jan, can be picked up through use of the Standard Additions dictionary (see below with highlights) so you can then use it outside of a tell block. In my case I usually set it up as a property but it can also be used in a set statement as well. Note that you can easily concatenate a string of the subfolders to that path if you keep it as a string.
e.g. property folderRef: (path to library folder from system domain as string) & "Filesystems"
-- or
set folderRef to (path to library folder from system domain as string) & "Filesystems" -> "Mavericks:System:Library:Filesystems" set folderRef to alias folderRef -- if you actually need or prefer an alias -> alias "Mavericks:System:Library:Filesystems"
Regards David
Standard Additions dictionary
path to v : Return the full path to the specified folder path to application support/applications folder/desktop/desktop pictures folder/documents folder/downloads folder/favorites folder/Folder Action scripts/fonts/help/home folder/internet plugins/keychain folder/library folder/modem scripts/movies folder/music folder/pictures folder/preferences/printer descriptions/public folder/scripting additions folder/scripts folder/services folder/shared documents/shared libraries/sites folder/startup disk/startup items/system folder/system preferences/temporary items/trash/users folder/utilities folder/workflows folder/voices/apple menu/control panels/control strip modules/extensions/launcher items folder/printer drivers/printmonitor/shutdown folder/speakable items/stationery : the folder to return [from system domain/local domain/network domain/user domain/Classic domain] : where to look for the indicated folder [as type class] : the type to return: alias or string (default is alias) [folder creation boolean] : Create the folder if it doesn’t exist? (default is true) → alias : the path to the specified folder
|
_______________________________________________
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