LoginSignup
8

More than 5 years have passed since last update.

ドラッグ&ドロップと、ファイル選択ダイアログ両方で動くAppleScriptのひな形

Posted at
on main(myFiles)    repeat with myFile in myFiles               --ここに処理を書く      display dialog myFile as string         end repeatend mainon open dropFiles my main(dropFiles)end openon run    set choosedFiles to choose file with multiple selections allowed
    my main(choosedFiles)end run

受け取ったファイルのパスをダイアログで出力しているだけです。

どこかで見つけたはずなのに検索しても見つからなくなっちゃったので記憶を頼りに再現。しかし全然違うものになった気がしまぷ

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8