Migrating from Win to Mac

Creating a macro - Writing a Script - Using the API

Migrating from Win to Mac

Postby asr10 » Mon Oct 07, 2019 10:45 am

Hello,

I switched from Windows to Mac. Almost all of my macros of my database do work, but opening a directory/folder doesnt work.

I really tried a lot, but the idea of

viewtopic.php?f=21&t=99039&p=476128&hilit=+macro+open+folder#p476128
rem---open Folder with content.xml:
oSyShell.execute(workdirfull, "", 0)

delivers an error (its a directory)

and the former way on windows by
oFeld2.TargetURL = url

too (cant open an absolute link).

Since I am a beginner on mac, I kindly ask for help. I am looking for a macro to open a folder in the finder.

Thank you very much and have mercy for my bad english :)
OpenOffice on MacOS 10.14.6
asr10
 
Posts: 2
Joined: Mon Oct 07, 2019 10:34 am

Re: Migrating from Win to Mac

Postby Zizi64 » Thu Oct 10, 2019 8:09 am

Please upload a sample document with the embedded macros here.
Tibor Kovacs, Hungary; LO6.1.6 on Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.3.3; AOO4.1.6
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 8492
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Migrating from Win to Mac

Postby asr10 » Mon Oct 14, 2019 7:28 pm

Thank you for the reply.

I guess, it is not an issue with the macro. Infact it is only building the path to the folder, which is to get opened.

I have a button, which is showing the exact path, when you move the mouse over. The properties of the push button are (General) Action....Open document/web page and (Events) Execute action....<macro>

But I get the Warning: "file:///Volumes/space/serverdocs/2019/71-19/" is not an absolute URL that can be passed to an external application to open it. <ok>

I have not changed anything, the database is opening the specific folder on Win7, Win10 and Linux, but on MacOS I get this warning.
OpenOffice on MacOS 10.14.6
asr10
 
Posts: 2
Joined: Mon Oct 07, 2019 10:34 am


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 2 guests