If you are putting this into a Terminal script, then I always just use the 
MacOS Copy Pathname from the right click on the file name (then press the  
option key). When the MacOS places the pathname into the pasteboard it will 
have the appropriate syntax (escaping out the spaces) as needed for terminal.

Jody Bevan
Argus Productions Inc.

> On Jun 24, 2019, at 8:57 AM, Jeremy French via 4D_Tech <[email protected]> 
> wrote:
> 
> How do we resolve POSIX file path syntax between 4D and Mac Terminal?
> 
> This Mac system path has a space in the folder name "Final Application":
> Macintosh 
> HD:Users:jeremyfrench:Desktop:test_notarize_01:test_notarize_01_Build:Final 
> Application:test_notarize_01.app:
> 
> 4D's POSIX shows the space in "Final Application" unescaped:
> /Users/jeremyfrench/Desktop/test_notarize_01/test_notarize_01_Build/Final 
> Application/test_notarize_01.app/
> 
> And 4D's escaped POSIX shows the space represented as "%20”, like this:
> /Users/jeremyfrench/Desktop/test_notarize_01/test_notarize_01_Build/Final%20Application/test_notarize_01.app/
> 
> Neither 4D syntax (escaped or unescaped) matches Terminal's POSIX syntax.
> 
> Terminal's POSIX shows the space in "Final Application" escaped differently, 
> with a left-slash: "\ "
> /Users/jeremyfrench/Desktop/test_notarize_01/test_notarize_01_Build/Final\ 
> Application/test_notarize_01.app
> 
> QUESTIONS:
> 
> Does Terminal escape only space characters?
> Are there other characters that Terminal escapes with a left-slash?
> Is replacing a space with left-slash-space the only change needed to convert 
> 4D's POSIX to Terminal's POXSIX?
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to