<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ON_MAC, ON_PC commands: do they EXIST? in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89662#M38478</link>
    <description>Try:
&lt;PRE&gt;i=REQUEST ("Name_of_program", "",TeX)
if STRSTR(TeX,".EXE") or STRSTR(TeX,".exe") then Dose=1
if Dose then Slash="/" else Slash=":"&lt;/PRE&gt;

Returns in DOSE 1 vor PC and 0 for Mac.&lt;BR /&gt;
&lt;BR /&gt;
Bases on a trick posted by Laurent? Karl? So far away, I don't remember.&lt;BR /&gt;
&lt;BR /&gt;
Does not work under 8.x, because of a bug in the request-statement.</description>
    <pubDate>Wed, 05 Jan 2005 09:52:19 GMT</pubDate>
    <dc:creator>Frank Beister</dc:creator>
    <dc:date>2005-01-05T09:52:19Z</dc:date>
    <item>
      <title>ON_MAC, ON_PC commands: do they EXIST?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89661#M38477</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;&lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_razz.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
When you plan to open a file (using "OPEN" GDL command), if you're working on MAC on or a PC, the path syntax is different for that platform... so, isn't there a way to tell the object what is the platform to use...???&lt;BR /&gt;
&lt;BR /&gt;
IF ON_MAC THEN PRINT "you are on a mac"&lt;BR /&gt;
IF ON_PC THEN PRINT "you are on a PC"&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
PWD&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jan 2005 08:09:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89661#M38477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-05T08:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: ON_MAC, ON_PC commands: do they EXIST?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89662#M38478</link>
      <description>Try:
&lt;PRE&gt;i=REQUEST ("Name_of_program", "",TeX)
if STRSTR(TeX,".EXE") or STRSTR(TeX,".exe") then Dose=1
if Dose then Slash="/" else Slash=":"&lt;/PRE&gt;

Returns in DOSE 1 vor PC and 0 for Mac.&lt;BR /&gt;
&lt;BR /&gt;
Bases on a trick posted by Laurent? Karl? So far away, I don't remember.&lt;BR /&gt;
&lt;BR /&gt;
Does not work under 8.x, because of a bug in the request-statement.</description>
      <pubDate>Wed, 05 Jan 2005 09:52:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89662#M38478</guid>
      <dc:creator>Frank Beister</dc:creator>
      <dc:date>2005-01-05T09:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: ON_MAC, ON_PC commands: do they EXIST?</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89663#M38479</link>
      <description>GREAT...&lt;BR /&gt;
&lt;BR /&gt;
Only works in 9 and 7?&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
Marco</description>
      <pubDate>Wed, 05 Jan 2005 10:30:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/ON-MAC-ON-PC-commands-do-they-EXIST/m-p/89663#M38479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-01-05T10:30:46Z</dc:date>
    </item>
  </channel>
</rss>

