AppleScript名:フルパスからファイル名を取得して拡張子を削除する |
— Created 2017-02-04 10:38:44 +0900 by Takaaki Naganoya — 2017 Piyomaru Software use AppleScript version "2.4" use scripting additions use framework "Foundation" set aPath to "/Users/me/Documents/ぴよまるソフトウェア/–Book1「AppleScript最新リファレンス」/9999_images/E81F91B7-4931-463F-A027-21A18A853290.jpg" set aStr to (current application’s NSString’s stringWithString:aPath)’s lastPathComponent()’s stringByDeletingPathExtension() as string –> "E81F91B7-4931-463F-A027-21A18A853290.jpg" |
More from my site
(Visited 123 times, 1 visits today)