and how can paste the names to TextEdit?
tell application “Finder”
set theFolder to folder “Book:Users:myusername:Music:Mymusic”
set c to the name of folders of theFolder
end tell
tell application “TextEdit” to activate
– how to paste c to TextEdit?
Thanx 4 helping
Regards Gergo, from Romania.
Model: PowerBook
Browser: Firefox 2.0.0.12
Operating System: Mac OS X (10.4)
tell application "Finder"
set theFolder to folder ((path to music folder as text) & "Mymusic:")
set c to the name of folders of theFolder
end tell
set {TID, text item delimiters} to {text item delimiters, return}
set c to c as text -- flatten the list with carriage returns
set text item delimiters to TID
tell application "TextEdit"
activate
set text of document 1 to c
end tell
And if I have a saved Text whit the names, how can I “update” it, don’t wanna clear the names at the document, just put the names on. Thank You for helping!