フォルダアクションの最近のブログ記事

ドロップされたファイルを処理

| コメント(0) | トラックバック(0)
on adding folder items to this_folder after receiving added_items
	try
		tell application "Finder"
			--↓フォルダアクションの設定されているフォルダ
			set the folder_name to the name of this_folder
		end tell
		--set the item_count to the number of items in the added_items
		--↓フォルダにドロップされたファイル
		repeat with myFile in added_items
			tell application "Finder"
				set the file_name to the name of myFile
			end tell
			display dialog folder_name & "内の" & file_name
		end repeat
	end try
end adding folder items to

設定方法

| コメント(0) | トラックバック(0)
作成したスクリプトは
Library=>Scripts=>Folder Action Scripts
に入れておく

スクリプトメニューから
Folder Actions=>Attach Script to Folder
を選ぶ

使用するスクリプトを選ぶ

フォルダアクションを設定したいフォルダを選ぶ

エントリー一覧

OpenID対応しています OpenIDについて
Powered by Movable Type 7.902.0
漢字イラストロジック-脳トレ京
FREE ONLINE SUDOKU