I posted the following script I am trying to work with. As of night now, it takes every file in a folder and adds a prescript to create url links for all files in the folder and creates a text document in text editor with the result urls like so:
currently:
http://www.mynetwork.tv/vue/qt1.mov
http://www.mynetwork.tv/vue/qt2.mov
http://www.mynetwork.tv/vue/qt3.mov
I need it to put a space (like hitting the return key) between each of them starting with a double space first like so:
Needs to be:
(space)
(space)
http://www.mynetwork.tv/vue/qt1.mov
(space)
http://www.mynetwork.tv/vue/qt2.mov
(space)
http://www.mynetwork.tv/vue/qt3.mov
I know this is probably as simple as adding one line of code, but then again, I know nothing about writing code. I am slooooowly starting to catch on, but it will take time. Any help would be much appreciated. Thanks guys.
Current script:
tell application "Finder"
set theFolder to "Macinosh HD:Users:Usersesktop:Finished" as alias
set theList to name of (every file in theFolder)
end tell
repeat with i from 1 to (number of items in theList)
set theName to (item i of theList)
set item i of theList to ("http://www.mynetwork.tv/vue/" & theName)
end repeat
set theText to ""
repeat with i from 1 to (number of items in theList)
set theText to (theText & (item i of theList) & "
")
end repeat
tell application "TextEdit"
activate
make new document
set the text of the front document to theText
end tell
currently:
http://www.mynetwork.tv/vue/qt1.mov
http://www.mynetwork.tv/vue/qt2.mov
http://www.mynetwork.tv/vue/qt3.mov
I need it to put a space (like hitting the return key) between each of them starting with a double space first like so:
Needs to be:
(space)
(space)
http://www.mynetwork.tv/vue/qt1.mov
(space)
http://www.mynetwork.tv/vue/qt2.mov
(space)
http://www.mynetwork.tv/vue/qt3.mov
I know this is probably as simple as adding one line of code, but then again, I know nothing about writing code. I am slooooowly starting to catch on, but it will take time. Any help would be much appreciated. Thanks guys.
Current script:
tell application "Finder"
set theFolder to "Macinosh HD:Users:Usersesktop:Finished" as alias
set theList to name of (every file in theFolder)
end tell
repeat with i from 1 to (number of items in theList)
set theName to (item i of theList)
set item i of theList to ("http://www.mynetwork.tv/vue/" & theName)
end repeat
set theText to ""
repeat with i from 1 to (number of items in theList)
set theText to (theText & (item i of theList) & "
")
end repeat
tell application "TextEdit"
activate
make new document
set the text of the front document to theText
end tell