#1155 Support for system resources in Mac OS X?

None
closed
None
none
1
2013-01-20
2013-01-19
No

This is not really a bug but rather feature request. I have tried to send it to the User Mailing List twice but have not seen it arriving in the list so I try this way instead. It seems I have been lacklisted by SourceForge ;-(....

I have been using ooRexx in a script that can launch a browser under Windows XP for some time now and that works fine. I can control Internet Explorer (more or less) using ole and this is how I control Firefox:

/
Try to launch firefox from ooRexx on PC or Mac
1.00 Original coding 03.01.2013
/

pgmpath = value('ProgramFiles',,'ENVIRONMENT')

FF_String = '"'|| pgmpath || '\Mozilla Firefox\firefox.exe"'
url1 = 'http://www.google.com'
url2 = 'http://www.bing.com'

Launch_String = FF_String '-new-tab' url1
res = RxWinExec(Launch_String)

CALL sysSleep 5

Launch_String = FF_String '-new-tab' url2
res = RxWinExec(Launch_String)

Exit

::requires 'winsystm.cls'

Now, my question: can I do something similar under Mac OS X?

Related

Bugs: #1155

Discussion

  • Mark Miesfeld

    Mark Miesfeld - 2013-01-19

    I don't know much about working on a Mac or with OS X, so I don't know how you would do that on a Mac. I'm not even sure if you can do it with ooRexx.

    1.) About the user list - you need to subscribe to the list before you can post to it. Subscribe at:

    https://sourceforge.net/p/oorexx/mailman/?source=navbar

    and click on oorexx-users to subscribe

    2.) You're right, this isn't a bug. Please reopen this a a Feature Request. You do it the same way you did here. But instead use the Feature Request tracker here:

    https://sourceforge.net/p/oorexx/feature-requests/

    and create a ticket.

    I'll give you some time to reopen this as a Feature Request, then I plan on closing this as it is not a bug.

     
  • Bruce

    Bruce - 2013-01-20

    Well, kind of. OLE is of course Windows only technology. Mac OS X uses Open Scripting Architecture (OSA), of which Applescript is the best known language. ooRexx isn't OSA. Having said that, you can use the UNIX command line to kind of do what you want. I would do something like this.

    !/usr/bin/rexx

    "open -a Firefox http://www.google.com"
    "open -a Firefox http://www.bing.com"

    exit

    This starts Firefox, and opens two windows, one with each url.

    Bruce
    On Jan 19, 2013, at 3:07 PM, Per Olov Jonsson wrote:

    [bugs:#1155] Support for system resources in Mac OS X?

    Status: open
    Created: Sat Jan 19, 2013 11:07 PM UTC by Per Olov Jonsson
    Last Updated: Sat Jan 19, 2013 11:07 PM UTC
    Owner: nobody

    This is not really a bug but rather feature request. I have tried to send it to the User Mailing List twice but have not seen it arriving in the list so I try this way instead. It seems I have been lacklisted by SourceForge ;-(....

    I have been using ooRexx in a script that can launch a browser under Windows XP for some time now and that works fine. I can control Internet Explorer (more or less) using ole and this is how I control Firefox:

    /
    Try to launch firefox from ooRexx on PC or Mac
    1.00 Original coding 03.01.2013/

    pgmpath = value('ProgramFiles',,'ENVIRONMENT')

    FF_String = '"'|| pgmpath || '\Mozilla Firefox\firefox.exe"'
    url1 = 'http://www.google.com'
    url2 = 'http://www.bing.com'

    Launch_String = FF_String '-new-tab' url1
    res = RxWinExec(Launch_String)

    CALL sysSleep 5

    Launch_String = FF_String '-new-tab' url2
    res = RxWinExec(Launch_String)

    Exit

    ::requires 'winsystm.cls'

    Now, my question: can I do something similar under Mac OS X?

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1155/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/

     

    Related

    Bugs: #1155

  • Per Olov Jonsson

    Hello,

    I am already subscribed to the user list and have tried to post and failed miserably. Only now when I received your mail did I realize I had subscribed under another mail compared to the one I mailed from. Highly intelligent...

    Please close the incident, I will repost using the right e-mail.

    Hälsningar / Regards / Grüsse
    P.O. Jonsson
    per-olov.jonsson@kabelmail.de

    Am 20.01.2013 um 00:49 schrieb Mark Miesfeld:

    I don't know much about working on a Mac or with OS X, so I don't know how you would do that on a Mac. I'm not even sure if you can do it with ooRexx.

    1.) About the user list - you need to subscribe to the list before you can post to it. Subscribe at:

    https://sourceforge.net/p/oorexx/mailman/?source=navbar

    and click on oorexx-users to subscribe

    2.) You're right, this isn't a bug. Please reopen this a a Feature Request. You do it the same way you did here. But instead use the Feature Request tracker here:

    https://sourceforge.net/p/oorexx/feature-requests/

    and create a ticket.

    I'll give you some time to reopen this as a Feature Request, then I plan on closing this as it is not a bug.

    [bugs:#1155] Support for system resources in Mac OS X?

    Status: open
    Created: Sat Jan 19, 2013 11:07 PM UTC by Per Olov Jonsson
    Last Updated: Sat Jan 19, 2013 11:07 PM UTC
    Owner: nobody

    This is not really a bug but rather feature request. I have tried to send it to the User Mailing List twice but have not seen it arriving in the list so I try this way instead. It seems I have been lacklisted by SourceForge ;-(....

    I have been using ooRexx in a script that can launch a browser under Windows XP for some time now and that works fine. I can control Internet Explorer (more or less) using ole and this is how I control Firefox:

    /
    Try to launch firefox from ooRexx on PC or Mac
    1.00 Original coding 03.01.2013/

    pgmpath = value('ProgramFiles',,'ENVIRONMENT')

    FF_String = '"'|| pgmpath || '\Mozilla Firefox\firefox.exe"'
    url1 = 'http://www.google.com'
    url2 = 'http://www.bing.com'

    Launch_String = FF_String '-new-tab' url1
    res = RxWinExec(Launch_String)

    CALL sysSleep 5

    Launch_String = FF_String '-new-tab' url2
    res = RxWinExec(Launch_String)

    Exit

    ::requires 'winsystm.cls'

    Now, my question: can I do something similar under Mac OS X?

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/oorexx/bugs/1155/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/

     

    Related

    Bugs: #1155

  • Mark Miesfeld

    Mark Miesfeld - 2013-01-20
    • status: open --> closed
    • assigned_to: Mark Miesfeld
     
  • Mark Miesfeld

    Mark Miesfeld - 2013-01-20

    Closing now as not a bug.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks