Applescriptのごく基本的なサンプル

ウインドウ関連 | ファイル/フォルダ操作 | ファイル属性 | ディスク関連 | ダイアログ関連 | プロセス関連 | クリップボード関連 | ファイルの読み書き | 日付け/時刻関連 | その他 | 繰り返し処理


ウインドウ関連

ウインドウの名前を得る | ウインドウを移動する | ウインドウのサイズを変更 | ウインドウをズームする | ウインドウを閉じる | ウインドウをドックに格納する | ウインドウの表示をアイコンビューに変更 | ウインドウの表示をリストビューに変更 | ウインドウの表示をカラムビューに変更 | アイコンビューのオプションを変更する | アイコンビューでアイコンの大きさを変える | リストビューでフォルダのサイズも表示する | リストビューでアイコンの大きさを変える | リストビューで,選択したカラムでソートする(1) | リストビューで,選択したカラムでソートする(2) | リストビューで,全てのカラムを表示する | リストビューで,特定のカラムを表示/非表示 | リストビューで相対日時を使う/使わない

ウインドウの名前を得る
tell application "Finder"
	get name of Finder window 1
end tell
最前面のウインドウの名前を得る(Finder)

ウインドウを移動する
tell application "Finder"
	set position of Finder window 1 to {0, 44}
end tell
{0, 44}はウインドウの左上の座標。上の例では最前面のウインドウを左上の隅に移動する(Finder)

ウインドウのサイズを変更
tell application "Finder"
	set bounds of Finder window 1 to {0, 44, 600, 600}
end tell
最前面のウインドウのサイズを変更する。{ }内の「0, 44」がウインドウの左上隅の座標,「600, 600」が右下隅の座標。(Finder)

ウインドウをズームする
tell application "Finder"
	set zoomed of Finder window 1 to true
end tell
最前面のウインドウをズームする(Finder)

ウインドウを閉じる
tell application "Finder"
	close Finder window 1
end tell
最前面のウインドウを閉じる(Finder)
tell application "Finder"
	close every Finder windows
end tell
全てのウインドウを閉じる(Finder)

ウインドウをドックに格納する
tell application "Finder"
	set collapsed of Finder window 1 to true
end tell
最前面にあるウインドウをドックに格納する(Finder)
tell application "Finder"
	set collapsed of every Finder window to true
end tell
全てのウインドウをドックに格納する(Finder)

ウインドウの表示をアイコンビューに変更
tell application "Finder"
	set current view of Finder window 1 to icon view
end tell
最前面のウインドウの表示をアイコンビューに変更する(Finder)

ウインドウの表示をリストビューに変更
tell application "Finder"
	set current view of Finder window 1 to list view
end tell
最前面のウインドウの表示をリストビューに変更する(Finder)

ウインドウの表示をカラムビューに変更
tell application "Finder"
	set current view of Finder window 1 to column view
end tell
最前面のウインドウの表示をカラムビューに変更する(Finder)

アイコンビューのオプションを変更する
tell application "Finder"
	set current view of Finder window 1 to icon view
	set arrangement of icon view options of Finder window 1 to snap to grid
end tell
最前面のウインドウを「グリッドに沿う」にする。「snap to grid」を変更することでオプションを変更できる。用語辞書には「not arranged/snap to grid/arranged by name/arranged by modification date/arranged by creation date/arranged by size/arranged by kind/arranged by label」がある。(Finder)

アイコンビューでアイコンの大きさを変える
tell application "Finder"
	set current view of Finder window 1 to icon view
	set icon size of icon view options of Finder window 1 to 48
end tell
最前面のウインドウのアイコンの大きさを変える。「48」の部分は16〜128の間。(Finder)

リストビューでフォルダのサイズも表示する
tell application "Finder"
	set current view of Finder window 1 to list view
	set calculates folder sizes of list view options of Finder window 1 to true
end tell
最前面のウインドウでフォルダのサイズを表示する。(Finder)

リストビューでアイコンの大きさを変える
tell application "Finder"
	set current view of Finder window 1 to list view
	set icon size of list view options of Finder window 1 to large icon
end tell
最前面のウインドウのリストビューのアイコンの大きさを変える。「large icon」か「small icon」のどちらか。(Finder)

リストビューで,選択したカラムでソートする(1)
tell application "Finder"
	set current view of Finder window 1 to list view
	set sort column of list view options of Finder window 1 to 1
end tell
3行目の最後の「1」を変更すると変更日や作成日などでソートできる。1が名前,2が変更日,3が作成日,4がサイズ,5が種類,7がバージョン,8がコメントでソートのようだ。6はラベルによるソートのようだが,実装されていない。選択したカラムが表示されていないとエラーになる。(Finder)

リストビューで,選択したカラムでソートする(2)
tell application "Finder"
	set current view of Finder window 1 to list view
	set sort column of list view options of Finder window 1 to name column
end tell
数値ではなく「name column」などでも指定できる。用語辞書には「name column/modification date column/creation date column/size column/kind column/label column/version column/comment column」がある。label columnは未実装。(Finder)

リストビューで,全てのカラムを表示する
tell application "Finder"
	set current view of Finder window 1 to list view
	set visible of columns of list view options of Finder window 1 to true
end tell
(Finder)

リストビューで,特定のカラムを表示/非表示
tell application "Finder"
	set current view of Finder window 1 to list view
	set visible of column 3 of list view options of Finder window 1 to false
end tell
「column 3」の「3」を変更すると変更日や作成日などの表示/非表示を切り替えられる。1が名前,2が変更日,3が作成日,4がサイズ,5が種類,6がラベル,7がバージョン,8がコメント。カラム名(creation date columnなど)での指定は駄目な模様。(Finder)

リストビューで相対日時を使う/使わない
tell application "Finder"
	set current view of Finder window 1 to list view
	set uses relative dates of list view options of Finder window 1 to true
end tell
最前面のウインドウで相対日時(昨日,今日など)を使うかどうかを指定。trueかfalseのどちらか。(Finder)

ページトップへ



ファイル/フォルダ操作

フォルダを作る | エイリアスを作る | ファイルを移動する | ファイルを複製する | ファイルをFinderで表示する | フォルダ内のアイテムの数を得る | ゴミ箱へ移動する | ゴミ箱を空にする | フォルダ内のアイテムのリストを得る | 特別なフォルダへのパスを得る

フォルダを作る
tell application "Finder"
	make new folder at desktop
end tell
デスクトップにフォルダを作る(Finder)

エイリアスを作る
tell application "Finder"
	make new alias file at desktop to (choose file)
end tell
ダイアログで選択したファイルのエイリアスをデスクトップに作る(Finder)

ファイルを移動する
tell application "Finder"
	move (choose file) to desktop
end tell
ダイアログで選択したファイルをデスクトップに移動(Finder)
tell application "Finder"
	move (choose file) to desktop with replacing
end tell
移動先に同名のファイルが存在する場合,置き換える。(Finder)
tell application "Finder"
	move (choose file) to desktop without replacing
end tell
移動先に同名のファイルが存在する場合,置き換えない。(Finder)

ファイルを複製する
tell application "Finder"
	duplicate (choose file)
end tell
ダイアログで選択したファイルをその場所で複製する(Finder)
tell application "Finder"
	duplicate (choose file) to desktop
end tell
ダイアログで選択したファイルをデスクトップに複製する(Finder)
tell application "Finder"
	duplicate (choose file) to desktop with replacing
end tell
複製先に同名のファイルが存在する場合,置き換える。(Finder)
tell application "Finder"
	duplicate (choose file) to desktop without replacing
end tell
複製先に同名のファイルが存在する場合,置き換えない。(Finder)

ファイルをFinderで表示する
tell application "Finder"
	reveal (choose file)
end tell
ダイアログで選択したファイルをFinderで表示する(Finder)

フォルダ内のアイテムの数を得る
tell application "Finder"
	count items of folder (choose folder)
end tell
選択ダイアログで選択したフォルダ内のアイテム数を得る。(Finder)

ゴミ箱へ移動する
tell application "Finder"
	delete (choose file)
end tell
ダイアログで選択したファイルをゴミ箱へ移動する(Finder)
tell application "Finder"
	set selectItems to selection
	set everyItems to every item of selectItems
	delete everyItems
end tell
Finderで選択された(複数の)アイテムをゴミ箱へ移動する(Finder)

ゴミ箱を空にする
tell application "Finder"
	empty trash
end tell
(Finder)

フォルダ内のアイテムのリストを得る
list folder (choose folder)
選択ダイアログで選択したフォルダ内のアイテムを得る。不可視ファイルを除きたいときは「list folder (choose folder) without invisibles」とする。(Standard Additions)

特別なフォルダへのパスを得る
path to application support
アプリケーションサポートフォルダへのパス。用語辞書にはほかに「apple menu/application support/control panels/control strip modules/desktop/desktop pictures folder/extensions/Folder Action scripts/fonts/help/launcher items folder/modem scripts/plugins/preferences/printer descriptions/printer drivers/printmonitor/」等がある。ユーザーフォルダ以下から選択したい場合は「path to application support from user domain」とする。(Standard Additions)

ページトップへ



ファイル属性

クリエータタイプを得る | ファイルタイプを得る | ファイルが存在するかどうか調べる | 名前を得る | ファイルサイズを得る(1) | ファイルサイズを得る(2) | ファイルのデータフォークのみのサイズを得る | 拡張子を得る | 拡張子を表示/非表示 | ロック/ロック解除する | 作成日/変更日を得る | インターネットロケーションファイルのURLなどを得る | デフォルトアプリケーションを得る | ファイルを含むボリューム(ディスク)を得る

クリエータタイプを得る
tell application "Finder"
	get creator type of (choose file)
end tell
ダイアログで選択したファイルのクリエータを得る。クリエータタイプを持たない場合はmissing valueが返る。(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get creator type of file myFile
end tell
ダイアログで選択したファイルのクリエータを得る。クリエータタイプを持たない場合は" "が返る。(System Events)

ファイルタイプを得る
tell application "Finder"
	get file type of (choose file)
end tell
ダイアログで選択したファイルのファイルタイプを得る。ファイルタイプを持たない場合はmissing valueが返る。(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get file type of file myFile
end tell
ダイアログで選択したファイルのファイルタイプを得る。ファイルタイプを持たない場合は" "が返る。(System Events)

ファイルが存在するかどうか調べる
tell application "Finder"
	get exists of file "AAA" of desktop
end tell
デスクトップに「AAA」という名のファイルが存在するかどうか調べる。存在すれば「true」,存在しなければ「false」が返る(Finder)
tell application "System Events"
	exists file "/Users/username/Desktop/AAA"
end tell
デスクトップに「AAA」という名のファイルが存在するかどうか調べる。存在すれば「true」,存在しなければ「false」が返る。「"/Users/username/Desktop/AAA"」は「 "~/Desktop/AAA"」でも良い。(System Events)

名前を得る
tell application "Finder"
	get name of (choose file)
end tell
選択ダイアログで選択したファイルの名前を得る(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get name of file myFile
end tell
選択ダイアログで選択したファイルの名前を得る(System Events)

ファイルサイズを得る(1)
tell application "Finder"
	get size of (choose file)
end tell
選択ダイアログで選択したファイルのデータフォーク+リソースフォークのサイズを得る。リソースフォークのないファイルの場合はデータフォークのサイズ。情報ウインドウの()の値(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get size of file myFile
end tell
選択ダイアログで選択したファイルのデータフォーク+リソースフォークのサイズを得る。リソースフォークのないファイルの場合はデータフォークのサイズ。情報ウインドウの()の値(System Events)

ファイルサイズを得る(2)
tell application "Finder"
	get physical size of (choose file)
end tell
ディスク内でどれだけの容量を占めているかを示す値(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get physical size of file myFile
end tell
ディスク内でどれだけの容量を占めているかを示す値(System Events)

ファイルのデータフォークのみのサイズを得る
set myFile to choose file
open for access myFile without write permission
set datasize to get eof myFile
close access myFile
get datasize
(Standard Additions)

拡張子を得る
tell application "Finder"
	get name extension of (choose file)
end tell
選択ダイアログで選択したファイルの拡張子を得る。「pdf」等が返る(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get name extension of file myFile
end tell
選択ダイアログで選択したファイルの拡張子を得る。「pdf」等が返る(System Events)

拡張子を表示/非表示
tell application "Finder"
	set extension hidden of (choose file) to true
end tell
選択ダイアログで選択したファイルの拡張子を隠す。表示する場合はtrueをfalseに変更(Finder)

ロック/ロック解除する
tell application "Finder"
	set locked of (choose file) to true
end tell
選択ダイアログで選択したファイルをロック/ロック解除する。trueをfalseにするとロック解除(Finder)

作成日/変更日を得る
tell application "Finder"
	get creation date of (choose file)
end tell
選択ダイアログで選択したファイルの作成日を得る。変更日を得たいときは「creation date」を「modification date」に変更(Finder)
set myFile to POSIX path of (choose file)
tell application "System Events"
	get creation date of file myFile
end tell
選択ダイアログで選択したファイルの作成日を得る。変更日を得たいときは「creation date」を「modification date」に変更(System Events)

インターネットロケーションファイルのURLなどを得る
tell application "Finder"
	get location of (choose file)
end tell
選択ダイアログで選択したインターネットロケーションファイルのURLなどを得る。実際に使う時にはロケーションファイルかどうかを判定することが必要(Finder)

デフォルトアプリケーションを得る
get default application of (info for (choose file))
ダイアログで選択されたファイルのデフォルトアプリケーションを得る(Standard Additions)

ファイルを含むボリューム(ディスク)を得る
set myFile to POSIX path of (choose file)
tell application "System Events"
	get volume of file myFile
end tell
ダイアログで選択されたファイルを含むボリューム(ディスク)を得る(System Events)

ページトップへ



ディスク関連

全ディスクを得る(1) | 全ディスクを得る(2) | 起動ディスクを得る | ディスクの残り容量を得る | ディスクのフォーマットを得る | ディスクをイジェクトする

全ディスクを得る(1)
tell application "Finder"
	get disks
end tell
(Finder)

全ディスクを得る(2)
list disks
(Standard Additions)

起動ディスクを得る
tell application "Finder"
	get startup disk
end tell
(Finder)

ディスクの残り容量を得る
tell application "Finder"
	get free space of startup disk
end tell
起動ディスクの残り容量を得る。free spaceをcapacityにすると全容量を得られる(Finder)

ディスクのフォーマットを得る
tell application "Finder"
	get format of startup disk
end tell
起動ディスクのフォーマットを得る(Finder)

ディスクをイジェクトする
tell application "Finder"
	eject disk "AAA"
end tell
「AAA」という名前のディスクをイジェクトする(Finder)

ページトップへ



ダイアログ関連

ダイアログを表示する | ダイアログにアイコンを表示 | ダイアログに入力フィールドを表示 | ダイアログのボタンをカスタマイズ | ダイアログを指定秒後に自動的に閉じる | ダイアログで入力されたテキストを利用する | ダイアログでクリックされたボタンによって処理を分岐する | リストから選択する | リストから選択する時に,デフォルトで選択状態の項目を作る | リストから選択する時に,ボタンのテキストを変える | リストから選択する時に,複数選択を可能にする | リストから選択する時に,未選択状態でOKボタンをアクティブにする | ファイル選択ダイアログを開く | フォルダ選択ダイアログを開く

ダイアログを表示する
display dialog "Hello!"
ダイアログに「Hello!」を表示。日本語を表示するときはFinder内などで実行しないと文字化けする(Standard Additions)

ダイアログにアイコンを表示
display dialog "Hello!" with icon note
noteの代わりにcaution,stopなど。日本語を表示するときはFinder内などで実行しないと文字化けする。(Standard Additions)

ダイアログに入力フィールドを表示
display dialog "Hello!" default answer ""
日本語を表示・入力するときはFinder内などで実行しないと文字化けする(Standard Additions)

ダイアログのボタンをカスタマイズ
display dialog "Hello!" buttons {"A", "B", "C"} default button 3
A,B,Cの三つのボタンを表示。上の例ではCがデフォルトボタンになる。日本語を表示するときはFinder内などで実行しないと文字化けする(Standard Additions)

ダイアログを指定秒後に自動的に閉じる
display dialog "Hello!" giving up after 1
1秒後にダイアログを閉じる。日本語を表示するときはFinder内などで実行しないと文字化けする(Standard Additions)

ダイアログで入力されたテキストを利用する
display dialog "Hello!" default answer "Bye"
set myResult to text returned of result
あるいは
set myResult to text returned of (display dialog "Hello!" default answer "Bye")
日本語を表示するときはFinder内などで実行しないと文字化けする(Standard Additions)

ダイアログでクリックされたボタンによって処理を分岐する
display dialog "Hello!" buttons {"A", "B", "C"} default button 3
set button_returned to button returned of result
if button_returned is "A" then
	--ボタンAがクリックされたときの処理
else if button_returned is "B" then
	--ボタンBがクリックされたときの処理	
else
	--ボタンCがクリックされたときの処理	
end if
日本語を表示するときはFinder内などで実行しないと文字化けする(Standard Additions)

リストから選択する
set myList to {"A", "B", "C", "D"}
choose from list myList
返り値は{"B"}の形で返る。日本語を表示するときはFinder内などで実行しないと文字化けする(Standard Additions)

リストから選択する時に,デフォルトで選択状態の項目を作る
set myList to {"A", "B", "C", "D"}
choose from list myList default items "A"
(Standard Additions)

リストから選択する時に,ボタンのテキストを変える
set myList to {"A", "B", "C", "D"}
choose from list myList OK button name "GO" cancel button name "STOP"
OKボタンはGOに,cancelボタンはSTOPに変わる(Standard Additions)

リストから選択する時に,複数選択を可能にする
set myList to {"A", "B", "C", "D"}
choose from list myList with multiple selections allowed
返り値は{"A", "B", "D"}の形で返る。複数選択の時,範囲選択はシフトキーを押しながら選択,複数選択はコマンドキーを押しながら選択する(Standard Additions)

リストから選択する時に,未選択状態でOKボタンをアクティブにする
set myList to {"A", "B", "C", "D"}
choose from list myList with empty selection allowed
(Standard Additions)

ファイル選択ダイアログを開く
choose file
結果は「alias "Macintosh HD:Users:username:Documents:test.txt"」のようになる(Standard Additions)
tell application "Finder"
	choose file with prompt "ファイルを選択して下さい"
end tell
ファイル選択ダイアログで文字列を表示する。Finder等の中で実行しないと日本語はうまく表示されない(Standard Additions)

フォルダ選択ダイアログを開く
choose folder
結果は「alias "Macintosh HD:Users:username:Documents:"」のようになる(Standard Additions)

ページトップへ



プロセス関連

起動しているプロセスを得る | 最前面のプロセスを得る | 最前面のプロセス以外を隠す

起動しているプロセスを得る
tell application "Finder"
	get processes
end tell
起動している全てのプロセスを得る(Finder)

最前面のプロセスを得る
tell application "Finder"
	get processes whose frontmost is true
end tell
(Finder)

最前面のプロセス以外を隠す
tell application "Finder"
	set visible of processes whose frontmost is false to false
end tell
(Finder)

ページトップへ



クリップボード関連

クリップボードのデータを得る | クリップボードにデータをコピーする | クリップボードのデータが文字かどうか判別する

クリップボードのデータを得る
get the clipboard
(Standard Additions)

クリップボードにデータをコピーする
set the clipboard to "Hello!"
クリップボードに「Hello!」がコピーされる(Standard Additions)

クリップボードのデータが文字かどうか判別する
set strOfClip to clipboard info for string
if strOfClip is not {} then
	--クリップボードのデータが文字の場合の処理
end if
クリップボードのデータが文字の場合は,返り値は「{{string, 122}}」のようになる。文字でない場合は「{}」が返る(Standard Additions)

ページトップへ



ファイルの読み書き

ファイルの内容を読み込む | ファイルにデータを書き込む | ファイルにデータを追加して書き込む | ファイルにデータを上書きして書き込む

ファイルの内容を読み込む
set myFile to choose file
open for access myFile without write permission
set myContents to read myFile
close access myFile
get myContents
選択ダイアログで選択したファイル内容を読み込む(Standard Additions)

ファイルにデータを書き込む
set saveFile to choose file name
open for access saveFile with write permission
write "Hello!" to saveFile
close access saveFile
choose file nameで保存するファイルの名前と場所を指定できる。ファイルに書き込む場合は「with write permission」が必要(Standard Additions)

ファイルにデータを追加して書き込む
set saveFile to choose file
open for access saveFile with write permission
set theEOF to get eof saveFile
write "Hello!" to saveFile starting at theEOF + 1
close access saveFile
get eofでファイルの末尾を得る。それに1を足した位置からデータを書き込む(Standard Additions)

ファイルにデータを上書きして書き込む
set saveFile to choose file
open for access saveFile with write permission
set eof saveFile to 0
write "Hello!" to saveFile
close access saveFile
(Standard Additions)

ページトップへ



日付け/時刻関連

現在の日付けを得る | 年月日などを個別に得る | 標準時との時差を得る

現在の日付けを得る
current date
返り値は「date "2003年 2月 18日 火曜日 11:49:52"」のようになる。表記は環境によって異なる(Standard Additions)

年月日などを個別に得る
year of (current date)--2003
month of (current date)--February
day of (current date)--18
weekday of (current date)--Tuesday
time of (current date)--43126
date string of (current date)--"2003年 2月 18日 火曜日"
date string of (current date)--"11:58:14"
--以下はそれぞれの返り値。timeはその日の午前0時からの秒数(Standard Additions)

標準時との時差を得る
time to GMT
グリニッジ標準時との時差が秒数で返る(Standard Additions)

ページトップへ



その他

ビープ音を鳴らす | 小数を四捨五入する | アスキー文字を得る | アスキーナンバーを得る

ビープ音を鳴らす
beep
複数回鳴らしたいときは「beep 3」のようにする(Standard Additions)

小数を四捨五入する
round 10.5 rounding as taught in school
「as taught in school」を書かないと,10.5が10になってしまう。(Standard Additions)

アスキー文字を得る
ASCII character 97
aが返る(Standard Additions)

アスキーナンバーを得る
ASCII number "a"
97が返る(Standard Additions)

ページトップへ



繰り返し処理

repeat 〜 end repeat | repeat n times 〜 end repeat | repeat until 〜 end repeat | repeat while 〜 end repeat | repeat with a in b 〜 end repeat | repeat with a from b to c 〜 end repeat

repeat 〜 end repeat
repeat
	display dialog "Enter your e-mail address." default answer "" with icon note
	set mail_add to text returned of result
	if (mail_add contains "@") and (mail_add contains ".") then
		exit repeat
	end if
end repeat
上の例は入力した文字列の中に@と.が含まれているかどうかを判定するもの。どちらか一方でも含まれていないと,何度でも入力のダイアログが出る。exit repeatでループを抜ける。これがないと無限ループになる。

repeat n times 〜 end repeat
set i to 1
repeat 5 times
	display dialog i
	set i to i + 1
end repeat
処理をn回繰り返す。上の例では5回ダイアログを表示する。表示する度に数が1ずつ大きくなる。

repeat until 〜 end repeat
set i to 1
set j to 0
repeat until i > 10
	set j to j + i
	set i to i + 1
end repeat
get j
1から10までの数字を足す(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10)。until以下の条件になるまで繰り返す構文。

repeat while 〜 end repeat
set i to 1
set j to 0
repeat while i < 11
	set j to j + i
	set i to i + 1
end repeat
get j
1から10までの数字を足す(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10)。while以下の条件が正しい間,繰り返す構文。

repeat with a in b 〜 end repeat
on open selectItem
	repeat with eachItem in selectItem
		tell application "Finder"
			display dialog name of eachItem as Unicode text
		end tell
	end repeat
end open
ドロップレットでよく使う。上の例はドラッグ&ドロップした複数ファイルの名前を一つずつ表示するドロップレット。

repeat with a from b to c 〜 end repeat
set j to 0
repeat with n from 1 to 10
	set j to j + n
end repeat
1から10までの数字を足す(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10)。通常は1刻みだが,「repeat with n from 1 to 10 by 2」とすることで2刻みなどにすることが可能。刻みの数字は整数のみで小数は不可。

ページトップへ


戻る | ホームページへ


(2003/2/19以来)