Dateinamen

Chlorwasser

Chlorwasser

Mitglied
Thread Starter
Dabei seit
19.01.2005
Beiträge
39
Reaktionspunkte
1
Hallo,

ich möchte gerne eine Folderaction programmieren die mir den Dateinamen der Datei die ich in den Ordner ziehe in das clipboard schreibt. Kann mir da jemand vielleicht etwas helfen oder einen Anhaltspunkt geben wie ich sowas anstelle?




Chlor
 
Folgenden Code auf eine Ordneraktion "umbiegen":

Code:
tell application "Finder"
	set these_items to the selection
end tell
repeat with i from 1 to the count of these_items
	set this_item to (item i of these_items) as alias
	set this_info to info for this_item
	tell application "Finder"
		set a to name of this_item
	end tell
	set the clipboard to a
end repeat

Grüße,
Flo
 
Code:
on adding folder items to this_folder after receiving added_items
	set the clipboard to (added_items as text)
end adding folder items to

Code:
on adding folder items to this_folder after receiving added_items
	set the clipboard to ""
	repeat with i from 1 to number of items of added_items
		tell application "Finder" to set the clipboard to (the clipboard) & " " & name of (item i of added_items)
	end repeat
end adding folder items to
 
Zurück
Oben Unten