| AppleScript
のコード 概要:指定したパスにあるファイルの
TypeとCreatorを取得し、ダイアログボックスに表示する
|
|---|
| set FileInfo to info for (file "ファイルの絶対パス") set theType to file type of FileInfo set theCreator to file creator of FileInfo display dialog "typeは" & theType & " Creatorは" & theCreator |
|
AppleScriptのコード
概要:指定したパスにあるファイルの
TypeとCreatorを変更する
|
| tell application "System Events" set theFile to file (" ファイルの絶対パス") set creator type of theFile to "aaaa" set file type of theFile to "bbbb" end tell |
| 関数 |
説明 |
|---|---|
| getFileType(ファイルの絶対パス) |
ファイルのTypeを返す |
| getFileCreator(ファイルの絶対パス) | ファイルのCreatorを返す |
| setFileType(ファイルの絶対パス,変更後のType) | ファイルのTypeを変更する |
| setFileCreator(ファイルの絶対パス,変更後のCreator) | ファイルのCreatorを変更する |