Hello,
I would like to create a script that copies information from between objects…for example, <track_title>1. Allegro moderato</track_title>
I would like the script to copy the “1. Allegro moderato” from between the <track_title> and the <track_title>.
Any Suggestions?
Thanks,
Brian
I’m not sure what you are tryng to do. I’m assuming you want to parse data.
Try:
set myData to "<track_title>1. Allegro moderato</track_title>"
set text item delimiters to "<track_title>"
set myTitle to text item 2 of myData
set text item delimiters to "</track_title>"
set myTitle to text item 1 of myTitle
set text item delimiters to ""
set the clipboard to myTitle
return myTitle
CarbonQuark
Hey CQ, I belive this was a double post covered in this post already http://bbs.applescript.net/viewtopic.php?id=21079
I am getting the track titles from record lables that need to be edited to put into a database. Here is a better example of what I get: ¨¨ <track_title>1. Allegro moderato</track_title>¨ <track_hierarchy_title>Symphony for strings No.9 in c minor</track_hierarchy_title>¨¨What I have to do is copy the track name from the track_hierarchy_title (in this case Symphony for strings No.9 in c minor), then paste it to the beginning of the track_title. So, what I should end up with is: ¨¨ <track_title>Symphony for strings No.9 in c minor1. Allegro moderato</track_title>¨ <track_hierarchy_title>Symphony for strings No.9 in c minor</track_hierarchy_title>
Brian