AppleScript名:path toの高度な機能(さまざまなフォルダへのパスを求める) |
set aPath to path to system folder –> alias "Cherry:System:" set aPath to path to system preferences –> alias "Cherry:System:Library:PreferencePanes:" set aPath to path to application support from user domain with folder creation –> alias "Macintosh HD:Users:maro:Library:Application Support:" set aPath to path to applications folder –> alias "Macintosh HD:Applications:" set aPath to path to desktop from user domain –> alias "Macintosh HD:Users:maro:Desktop:" set aPath to path to desktop pictures folder from user domain with folder creation –> alias "Macintosh HD:Users:maro:Library:Desktop Pictures:" set aPath to path to documents folder from user domain with folder creation –> alias "Macintosh HD:Users:maro:Documents:" set aPath to path to downloads folder from user domain with folder creation –> alias "Macintosh HD:Users:maro:Downloads:" set aPath to path to favorites folder from user domain with folder creation –> alias "Macintosh HD:Users:maro:Library:Favorites:" set aPath to path to Folder Action scripts folder from user domain –> alias "Macintosh HD:Users:maro:Library:Scripts:Folder Action Scripts:" set aPath to path to fonts folder from user domain with folder creation –> alias "Macintosh HD:Users:maro:Library:Fonts:" set aPath to path to help folder from user domain with folder creation –> alias "Macintosh HD:Users:maro:Library:Documentation:Help:" set aPath to path to home folder from user domain with folder creation –> alias "Macintosh HD:Users:me:" set aPath to path to internet plugins folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Internet Plug-Ins:" set aPath to path to keychain folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Keychains:" set aPath to path to library folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:" –set aPath to path to modem scripts from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Modem Scripts:" set aPath to path to movies folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Movies:" set aPath to path to music folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Music:" set aPath to path to pictures folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Pictures:" set aPath to path to preferences from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Preferences:" set aPath to path to printer descriptions from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Printers:PPDs:" set aPath to path to public folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Public:" set aPath to path to scripting additions folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:ScriptingAdditions:" set aPath to path to scripts folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Scripts:" set aPath to path to services folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Library:Services:" set aPath to path to shared documents from user domain with folder creation –> alias "Cherry:Users:Shared:" –set aPath to path to shared libraries from user domain with folder creation set aPath to path to sites folder from user domain with folder creation –> alias "Macintosh HD:Users:me:Sites:" set aPath to path to startup disk –> alias "Cherry:" set aPath to path to startup items –> alias "Macintosh HD:Library:StartupItems:" set aPath to path to temporary items –> alias "Cherry:private:var:folders:h4:jfhlwst88xl9z0001s7k9vk00000gr:T:TemporaryItems:" set aPath to path to trash –> alias "Macintosh HD:Users:me:.Trash:" set aPath to path to users folder –> alias "Cherry:Users:" set aPath to path to workflows folder –> alias "Macintosh HD:Users:me:Library:Workflows:" set aPath to path to voices –> alias "Cherry:System:Library:Speech:Voices:" –set aPath to path to apple menu –set aPath to path to control panels –set aPath to path to control strip modules –set aPath to path to extensions –set aPath to path to launcher items folder –set aPath to path to printer drivers –set aPath to path to printmonitor –set aPath to path to shutdown folder –set aPath to path to speakable items –set aPath to path to stationery |
More from my site
(Visited 82 times, 1 visits today)