Old 05-20-2020, 06:10 AM   #1
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 509
Default reascript for pc

I need to make a whole bunch of script that were initially made on a mac to be compatible on window.

Asides from "/" the will become "" what are the other things I should lookup for?
__________________
MP 12 Core 3.46GHZ 48GB OSX10.11.6, MBP 15" 2012 OSX10.12, RME Fireface UFX, MCU,
Reaper 5, SD2, Omnisphere, Wave Altiverb, PSP, VB3, Izotope, Scuffham, Soundtoys 5, Slate All Plugins.
lexaproductions is offline   Reply With Quote
Old 05-20-2020, 06:41 AM   #2
lb0
Human being with feelings
 
Join Date: Apr 2014
Posts: 3,605
Default

Quote:
Originally Posted by lexaproductions View Post
I need to make a whole bunch of script that were initially made on a mac to be compatible on window.

Asides from "/" the will become "" what are the other things I should lookup for?
Technically - with respect to file paths in Reascript - '/' is valid on both PC and Mac.

However - if parsing a path string obtained via an API like reaper.GetResourcesPath() - this will contain \ on windows - so it's useful if using a pattern match string to use something like [\\/] which will find either \ or /.
__________________
Projects - Reascripts - Lua:
LBX Stripper | LBX Chaos Engine | LBX Floating FX Positioner | LBX SRD Smart Knobs
Donate via Paypal
lb0 is offline   Reply With Quote
Old 05-20-2020, 07:33 AM   #3
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: Apr 2020
Location: Leipzig
Posts: 279
Default

If you don't deal with commandline-stuff or paths in projectfiles, sticking to / as separator is usually everything you need to take care about.

As well as using GetResourcePath and similar functions to get Reaper's own paths.
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1111 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-20-2020, 03:21 PM   #4
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 509
Default

Thanks for both your answers. I do use the «io » library (open, Write, Close) but asides from that, not much else.
__________________
MP 12 Core 3.46GHZ 48GB OSX10.11.6, MBP 15" 2012 OSX10.12, RME Fireface UFX, MCU,
Reaper 5, SD2, Omnisphere, Wave Altiverb, PSP, VB3, Izotope, Scuffham, Soundtoys 5, Slate All Plugins.
lexaproductions is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.