Scriptエディタで構文を書いていると面倒なのは定型文をキータイプしていくことです。
今更ながらポップアップウインドウで入力支援が有るのに気がつきました。 (^_^;A
自分のレベルですとこれで十分どころか、オーバースペックな気がします。
Apple Scriptエディタ /プルダウンメニュー/環境設定/編集で使うことができます。
自分で見てみると多色の構文は見やすい反面目が疲れます。単色の方がいいかもしれません。
ここのサイトでコードの色づけをしていましたが、
それよりもアプリケーションでネストとコードの色づけをしたいと思いましたので
ここからアプリケーションをダウンロードしてやってみましたがうまくいきません。
もう少し研究が必要です。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
- ignoring application responses
- — insert actions here
- end ignoring
- with timeout of 180 seconds
- — insert actions here
- end timeout
- with transaction
- — insert actions here
- end transaction
- {“1“, “2“, “3“}
- if sentaku is {“1“, “2“, “3“} then
- — item 1 action goes here
- end if
- if true then
- — insert if actions here
- else
- — insert else actions here
- end if
- display dialog ““ buttons {““, ““} default button 2
- if the button returned of the result is ““ then
- — action for 1st button goes here
- else
- — action for 2nd button goes here
- end if
- try
- — insert actions here
- on error the error_message number the error_number
- set the error_text to “Error: “ & the error_number & “. “ & the error_message
- display dialog the error_text buttons {“OK“} default button 1
- return the error_text
- end try
- on adding folder items to this_folder after receiving these_items
- — insert actions here
- end adding folder items to
- set this_folder to (choose folder with prompt “Pick the folder containing the files to process:“) as string
- tell application “System Events“
- set these_files to every file of folder this_folder
- end tell
- repeat with i from 1 to the count of these_files
- set this_file to (item i of these_files as alias)
- set this_info to info for this_file
- if visible of this_info is true and alias of this_info is false then
- — insert actions here for: this_file
- end if
- end repeat
- considering case
- — insert actions here
- end considering
名称未設定
ignoring application responses
— insert actions here
end ignoring
with timeout of 180 seconds
— insert actions here
end timeout
with transaction
— insert actions here
end transaction
{“1”, “2”, “3”}
if sentaku is {“1”, “2”, “3”} then
— item 1 action goes here
end if
if true then
— insert if actions here
else
— insert else actions here
end if
display dialog “” buttons {“”, “”} default button 2
if the button returned of the result is “” then
— action for 1st button goes here
else
— action for 2nd button goes here
end if
try
— insert actions here
on error the error_message number the error_number
set the error_text to “Error: ” & the error_number & “. ” & the error_message
display dialog the error_text buttons {“OK”} default button 1
return the error_text
end try
on adding folder items to this_folder after receiving these_items
— insert actions here
end adding folder items to
set this_folder to (choose folder with prompt “Pick the folder containing the files to process:”) as string
tell application “System Events”
set these_files to every file of folder this_folder
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_info to info for this_file
if visible of this_info is true and alias of this_info is false then
— insert actions here for: this_file
end if
end repeat
considering case
— insert actions here
end considering
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー