パソコンとの付き合いは20年以上。最初はWindowsを使っていたが、務めていたソフトウェア開発会社…
Mac OS 関連情報
更新日:2001年06月27日
今回はちょっとしたときに使えるAppleScriptをいくつか御紹介します。いずれも仕事でMac を使っている人に役に立つものではないかと思います。
<スクリプト編集プログラムのアイコン>

文字数のカウント
| count item of (the clipboard) |

ファイルのパス
| (choose file) as text |

※フォルダのパスが知りたいのであれば、choose file をchoose folder とするだけでOKです。
ファイルの一覧
| list folder (choose folder) |
| list folder (choose folder) without invisibles |
|
set theList to list folder (choose folder) without invisibles set AppleScript's text item delimiters to return theList as text |
|
set theList to "" set aFolder to choose folder repeat with filename in (list folder aFolder without invisibles) set afile to ((aFolder as text) & filename) as alias set fileinfo to info for afile set theList to theList & filename & tab & (modification date of fileinfo) & return end repeat set the clipboard to theList |
いかがでしたか、ちょっと難しかったかな?
関連キーワード[PR]
人気Mac OSの使い方ランキング
Powered by 価格.com
関連キーワード[PR]