Hi All,
I am currently attempting to put together an AppleScript that can manipulate the data within an XML file.
I have been reading various web-sites and forums, this looking like the place to be!
My intention is to take the output from FCS “Write XML” function and change the File Name value.
I have got so far as:
on adding folder items to this_folder after receiving added_items
tell application “System Events”
repeat with this_item in added_items
tell contents of XML file this_item
???
end tell
end repeat
end tell
end adding folder items to
My issue is what to put between the “tell contents” action. I would like to replace the File Name with a predefined value “fname”…
Here is a sample of the XML:
<?xml version="1.0"?>
…
592x333_Test.png
…
Is this possible? Can somebody help?
KR,
Ben