Hi all,
I'm a newbie to the world of AppleScript, but I'm trying to put together a pretty simple script to parse apart a file path and create a .txt file at the end.
For example, the source file path would be:
/Users/Matt/Desktop/3840x2160
I would want to create separate variables from Users, Matt, Desktop, and 3840x2160. From there, I want to create a text document to fill in the blanks with those variables.
For example:
scriptname -tag (Original file path) -tag /Volumes/drive/(variable) -tag 3840x2160.zip
What's the simplest route to break apart the path and then put it back together in a new way?
I'm a newbie to the world of AppleScript, but I'm trying to put together a pretty simple script to parse apart a file path and create a .txt file at the end.
For example, the source file path would be:
/Users/Matt/Desktop/3840x2160
I would want to create separate variables from Users, Matt, Desktop, and 3840x2160. From there, I want to create a text document to fill in the blanks with those variables.
For example:
scriptname -tag (Original file path) -tag /Volumes/drive/(variable) -tag 3840x2160.zip
What's the simplest route to break apart the path and then put it back together in a new way?