
- #BASEELEMENTS DOES NOT RUN EXECUTESYSTEMCOMMAND HOW TO#
- #BASEELEMENTS DOES NOT RUN EXECUTESYSTEMCOMMAND FOR MAC#
- #BASEELEMENTS DOES NOT RUN EXECUTESYSTEMCOMMAND WINDOWS#
fileĭrwxr-xr-x 2 root wheel 64 Feb 7 08:22. VolumeIcon.icns -> System/Volumes/Data/.VolumeIcon.icns He might have more insight.īE_ExecuteSystemCommand ( "ls -al" 10000 ) & "¶¶" & BE_GetLastErrorĭrwxr-xr-x 20 root wheel 640 Feb 7 08:22.
#BASEELEMENTS DOES NOT RUN EXECUTESYSTEMCOMMAND FOR MAC#
If you prefer the new behavior you might wanna update the docs to encourage this syntax for mac did a little digging in the code and we think it has something to do with the way the new code is parsing the command, using the first arg as the command and the remaining part as the arguments. By the way, I should mention that all these commands work as expected in v4.1.2 if I write them like /bin/bash -c "echo test | tee /Users/brotherjoshua/test.txt".
#BASEELEMENTS DOES NOT RUN EXECUTESYSTEMCOMMAND HOW TO#
Notice how it's telling me how to use sleep correctly. The sleep example is interesting because it shows how all the words after "sleep" are being interpreted as arguments of the sleep command.

#BASEELEMENTS DOES NOT RUN EXECUTESYSTEMCOMMAND WINDOWS#
ConvertFromFileMakerPath ( $filemakerPath PosixPath ) //Convert FileMaker to Mac/Linux Plugin PathĬonvertFromFileMakerPath ( $filemakerPath WinPath ) //Convert FileMaker to Windows Plugin PathĬonvertToFileMakerPath ( $pluginPath PosixPath ) //Convert Mac/Linux Plugin Path to file://Mac path.ĬonvertToFileMakerPath ( $pluginPath WinPath ) //Convert Windows Plugin Path to file://Windows path.You asked for a simple example of something that used to work and doesn't anymore: #180 (comment) Simple way to interact with AWS CLI using FileMaker, BaseElements on Mac OS. A "plugin" path is the same as the PosixPath for Mac or Linux, and the WinPath for windows operating systems. The best way to convert paths is to use the native FileMaker functions ConvertFromFileMakerPath and ConvertToFileMakerPath. Note the consistency of the type of slash used, vs the difference in \ vs / in Windows/Mac. Windows : file:///C:/Users/John%20Smith/Documents/test.xlsx FileMaker Path Examples Mac : file:///Volumes/Clients/contacts.txt You can then adjust this path to suit whatever location you need, or to get an example of the difference between selecting a file on the desktop and running the Get ( DesktopFolder ) function.


This will return an example of the sort of path used by the function. To get an example of the sorts of paths that the plugin uses, use the BE_SelectFile function in the Data Viewer, and choose a file with a known path. Windows : C:\Users\John Smith\Documents\test.xlsx Plugin Paths Examples Mac : /Users/John Smith/Documents/test.xlsx" So if you're mixing and matching FileMaker paths and plugin paths, you will need to convert them between the types in order to use them in other places. Simple way to interact with AWS CLI using FileMaker, BaseElements on Mac OS. These file: prefixes that you get from things like the Get ( FilePath ) function and others, are unique to FileMaker and don't work anywhere else other than FileMaker itself, including not in the BE plugin. On the Mac, they usually start with /Volumes or /Users and on windows will be something like C:\Folder\Path.įileMaker paths often start with file: or filemac: and these WILL NOT work in the plugin. The paths used by the plugin are Operating System paths. Please note :įileMaker paths and plugin paths are not the same thing. Lots of the BE plugin functions use paths in the parameters or in values they return.
