Kyma Forum
  Kyma Support
  CapyTalk parsing

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   CapyTalk parsing
Bill Meadows
Member
posted 29 December 2001 01:49         Edit/Delete Message   Reply w/Quote
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
posted 29 December 2001 11:30         Edit/Delete Message   Reply w/Quote
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
posted 29 December 2001 13:03         Edit/Delete Message   Reply w/Quote
Perfect.

Thanks.

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c