|
Revision 32825, 0.7 kB
(checked in by CL, 4 years ago)
|
|
ファーストポスト。Illustratorファイルのバージョンを調べます。
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | -- AI Version Checker.applescript |
|---|
| 2 | -- AI Version Checker |
|---|
| 3 | |
|---|
| 4 | -- Created by cl on 09/04/26. |
|---|
| 5 | -- Copyright 2009 __MyCompanyName__. All rights reserved. |
|---|
| 6 | |
|---|
| 7 | on idle |
|---|
| 8 | (* Add any idle time processing here. *) |
|---|
| 9 | end idle |
|---|
| 10 | |
|---|
| 11 | on open names |
|---|
| 12 | (* Add your script to process the names here. *) |
|---|
| 13 | set thisFldr to "'" & resource path of main bundle & "'" as string |
|---|
| 14 | set myScript to thisFldr & "/ai_version_checker.pl" |
|---|
| 15 | repeat with thisObj in names |
|---|
| 16 | set thisObjPath to POSIX path of thisObj |
|---|
| 17 | set shellCommand to "perl " & myScript & " " & thisObjPath |
|---|
| 18 | set result to do shell script shellCommand |
|---|
| 19 | display alert result |
|---|
| 20 | end repeat |
|---|
| 21 | -- Remove the following line if you want the application to stay open. |
|---|
| 22 | -- quit |
|---|
| 23 | end open |
|---|
| 24 | |
|---|