![]() |
![]() ![]() ![]() ![]() ![]()
|
next newest topic | next oldest topic |
Author | Topic: CapyTalk parsing |
Bill Meadows Member |
![]() ![]() ![]() I have a script which prompts me for a file (normal Mac dialog box). I am using split-stereo files and would like to only get prompted once, so I would like the script to put the correct ".L" and ".R" extensions onto the base filename. I know how to do the concatenation, but I need to strip off the extension to get the correct base filename. How can I do that? e.g.- The script calls the dialog box and I select "alien.L". Back inside the script I want to strip off the ".L" so I can concatenate ".R" and create "alien.R". IP: Logged |
SSC Administrator |
![]() ![]() ![]() If you know that you will always have selected the correct kind of file, you could use: otherFileString := (fileString copyFrom: 1 to: fileString size - 1), 'R'. This copies all of the characters of the string except the last, and appends the letter R onto the end. IP: Logged |
Bill Meadows Member |
![]() ![]() ![]() Perfect. Thanks. IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() ![]() |
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.