November 3, 201015 yr Hi I want to select a file through a windows diolog and set the path to a field in Filemaker. Being a Mac guy I have no idea how would I script it and implement in scriptmaker? thanks This is my applescript equivalent. tell application "Finder" to set filename to (choose file) as text tell application "FileMaker Pro Advanced" to set cell "setup::file choose" of current record to filename
November 3, 201015 yr A cross-platform way of presenting a select file dialog is to do it natively in FileMaker Pro. Create a global container field (e.g. gScriptFileIO) In a script navigate to a layout containing that field. Use the script step Insert File[Reference;MyTable::gScriptFileIO] without specifying a source file. Then GetAsText() on the container field to parse the file reference.
Create an account or sign in to comment