- 2006-09-22 (金)
- AppleScript
カレントユーザの色んなパスを取得する AppleScript のサンプルです。
tell application "Finder" -- デスクトップ set a to desktop as text -- ホーム set b to home as text end tell
ハードディスク名から始まる絶対パス?ではなく、環境に依存しない汎用的なパス指定をしたいもんですね。
動作確認:Mac OS 10.4.7
関連する記事
Comments: 0
Trackback+Pingback: 0
- TrackBack URL for this entry
- http://bowz.info/1241/trackback
- Listed below are links to weblogs that reference
- [ AppleScript ] カレントユーザの色んなパスを取得するサンプル from Bowz::Notebook