Thanks for the help. Here’s the dictionary info for the split command:
split document – the target document
[at real] – the point at which to split the file (optional; if omitted, split at insertion point)
[by markers null] – split using all markers
[into file specification] – folder into which to save
[prefix boolean] – if true, add a numeric prefix (01, 02, 03…) before the file name of each file
I’ve created a new folder where I plan to save the sliced files to, and I have a reference to that in the variable sliceFolder. I’m creating this as a droplet, and aFile is a reference to the file that is dropped on the application. Here are a few of the things I’ve tried to create the slices, and the reslts I’ve gotten:
tell application "Sound Studio"
split aFile
end tell
– This compiles, and runs without an error, but as far as I can tell, nothing changes.
tell application "Sound Studio"
split aFile into sliceFolder
end tell
– This compiles, but I get an error when it runs. The error says: Can’t make ,class cfol> “folder name” of continues this for each folder in the path of of application “Finder” into the expected type. (-1700)
tell application "Sound Studio"
split aFile by markers
end tell
– This won’t change colors when I save
tell application "Sound Studio"
split aFile by markers null
-- split aFile marker null -- changes to this on save
end tell
– This changes colors when I save, but it gives me an error when I complie that says: Expected end of line, etc. but found class name. (-2741)
tell application "Sound Studio"
split into sliceFolder
end tell
– This compiles, but when I run it I get the same -1700 error as above
Any suggestions on what I may be doing wrong, or where to start looking would be great. Thanks
Nathan