- changed status to resolved
Standard handler names (open, close)
Issue #16
resolved
on open (droppedItem) --todo: fix pre-defined handler names set this_info to info for droppedItem set the item_name to the name of this_info set droppedItem to item_name tell application "Finder" set AppleScript's text item delimiters to ":" set theItem to last text item of droppedItem set droppedItem to lowercase theItem --error set theItem to droppedItem as text
repeat with x from 1 to (get count of items in searchStrings)
set search_string to (item x of searchStrings)
set replacement_string to (item x of replacementStrings)
set AppleScript's text item delimiters to search_string
set theItem to text items of theItem
set AppleScript's text item delimiters to replacement_string
set theItem to text items of theItem
set theItem to theItem as string
set AppleScript's text item delimiters to ""
end repeat
set new_item_name to theItem as string
set name of file droppedItem to new_item_name
end tell
beep
return
end open
Comments (2)
-
reporter -
reporter 112
- Log in to comment