AppleScript名:iTunesライブラリの場所を取得 |
— Created 2017-01-07 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" use framework "iTunesLibrary" set library to current application’s ITLibrary’s libraryWithAPIVersion:"1.0" |error|:(missing value) if library is equal to missing value then return set iTunesLibraryLocURL to (library’s musicFolderLocation)’s absoluteString() as string –> "file:///Users/me/Music/iTunes/iTunes%20Music/" set iTunesLibraryLocAlias to (library’s musicFolderLocation) as alias –> alias "Cherry:Users:me:Music:iTunes:iTunes Music:" set iTunesLibraryLocPOSIX to (library’s musicFolderLocation)’s |path|() as string –> "/Users/me/Music/iTunes/iTunes Music" |
More from my site
(Visited 61 times, 1 visits today)