Hi,
I have a question about 2 lines of code in this script, which gets the name of each file in the front finder window and puts those names in a text edit document
:
tell application "Finder"
set these_items to sort (get every document file of the front Finder window) by physical size
set these_names to {}
repeat with i from 1 to the count of these_items
set the end of these_names to the name of (item i of these_items)
end repeat
end tell
set AppleScript's text item delimiters to return
set the item_list to these_names as string
set AppleScript's text item delimiters to {""}
--make new document with text
tell application "TextEdit"
activate
make new document
set text of document 1 to the item_list
end tell
Here are the 2 lines in question…
1-set these_names to {} - I assume these curly braces mean list {}
2-set AppleScript’s text item delimiters to {“”} - I am not sure what the “” marks mean in the braces?
Can anyone help me with these 2 lines…the rest of the code I think I understand
thanks
babs