« IMT Exif Remover | トップページ | FastScripts »

[AppleScript]区切り文字が複数あるtxtファイルをExcelで開く


AppleScriptでデキストデータをExcel | OKWave

に答えてみた


tell application "Finder"
set theAliasFileResult to choose file "ファイルを選択"
set theFileResultText to theAliasFileResult as text
end tell


tell application "Microsoft Excel"
(open text file filename theFileResultText data type delimited other char "|" with use other and space)
end tell

「delimited_other_char.rtf」をダウンロード

「delimited_other_char.scpt.zip」をダウンロード


こんな感じではどうでしょう

Microsoft ExcelのAppleScriptのリファレンスは以下のURLにPDFがあります。
http://download.microsoft.com/download/3/A/7/3A70FB4B-0C6A-43E3-AAB7-AC9166B25632/Excel2004AppleScriptRef.pdf

日本語のドキュメントはチョット古いですが、以下のURLのPDFが参考になります。
http://download.microsoft.com/download/6/C/A/6CA6174A-FF8E-4B24-AD50-45B4AEC988D3/excel.pdf

|

« IMT Exif Remover | トップページ | FastScripts »

Office」カテゴリの記事