GetFile System Query Command

GetFile

Opens a file selector to get a filename and path from the user.

getfile [mode] [PATH name] [FILE name] [POSBUTTON label] [NEGBUTTON label]</P> <P>TITLE/s The file selector title.</P> <P>mode/k The file selector type: LOAD (default) | SAVE.</P> <P>PATH/s The default file path. Default=last.</P> <P>FILE/s The default filename to open.</P> <P>Default=last.</P> <P>POSBUTTON/s The label for the positive button.</P> <P>Default=Ok.</P> <P>NEGBUTTON/s The label for the negative button.</P> <P>Default=Cancel.</P> <P><B>Results:</B></P> <P>If NEGBUTTON is chosen, RC is set to 10. If POSBUTTON is chosen, RC is set to 0 and the full filepath and name are returned to RESULT.</P> <P><B>Notes:</B></P> <P>The file selector does not support keyboardequivalents for buttons, so do not use underscores in the button labels.</P> <P><B>Examples:</B></P> <PRE>'getfile TITLE "Save a file" save path ram: ยจ posbutton Save'</PRE> <p> </p> <p><span style='font-weight:bold;'>GetFile</span>  <span style='font-style:italic;'>Command Definition  url:PGScmd/getfile</span><br>  <span style='font-style:italic;'>created:2006-03-30 22:20:07   last updated:2008-03-12 11:27:40<br>  Copyright © 1985-2017 GrasshopperLLC. All Rights Reserved.</span></p><table class='comment'> <tr class='bar'> <td class='title'> User Contributed Comments For <span style='font-weight:bold;'>GetFile</span></td><td class='signin'> sign in to add a comment</td> </tr> <tr class='header'><td class='title'><span style='font-weight:bold;'>Dan Kilroy</span> wrote...</td><td class='add'>2006-05-04 16:40:21</td></tr> <tr class='body'><td class='body' colspan='2'><p><span style='font-style:italic;'>Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.</span></p> <p>Gets the {...} .</p> <p>fullfilepath = <span style='font-weight:bold;'>GetFile</span> ([LOAD | SAVE] [FILE file][PATH path] [TITLE title][POSBUTTON ok] [NEGBUTTON cancel])</p> <p><br><span style='font-weight:bold;'>Parameters:</span></p> <p><br><span style='font-weight:bold;'>Results:</span></p> <p><br><span style='font-weight:bold;'>Notes:</span></p> <p><br><span style='font-weight:bold;'>See Also:</span></p> <p><br><span style='font-weight:bold;'>Examples:</span><br><strong>Python:</strong><div style="margin:0px 10px;padding:5px;background-color:#F7F7F7;border:1px solid;width:80%;"> </div><br><strong>ARexx:</strong><div style="margin:0px 10px;padding:5px;background-color:#F7F7F7;border:1px solid;width:80%;"> </div><br><strong>Applescript:</strong><div style="margin:0px 10px;padding:5px;background-color:#F7F7F7;border:1px solid;width:80%;"> </div><br></p> </td></tr> <tr class='bar'> <td class='title'> User Contributed Comments For <span style='font-weight:bold;'>GetFile</span></td><td class='signin'> sign in to add a comment</td> </tr> </table> <br> <table class='navlinks'><tr><td class='prevlink'><a href='?action=Documents&id=1201'><< GetFigureMark</a></td><td class='nextlink'><a href='?action=Documents&id=417'>GetFilePath >></a></td></tr><tr class='sub'><td class='toplink'>Top: <a href='?action=Documents&id=1'>Documentation Library</a></td><td class='uplink'>Up: <a href='?action=Documents&id=39'>G Commands</a></td></tr><tr class='sub'><td class='search'><form name='search' method='post' action='?action=Documents'><input type='text' name='q'><input type='submit' name='search' value='Search'></form></td><td class='go'><form name='search' method='post' action='?action=Documents'><select name='id'><option value='1'>Documentation Library<option value='32'>-PageStream Scripting Documentation<option value='630'>--Command Reference<option value='640'>---Index of Commands<option value='39'>----G Commands<option value='416' selected>-----GetFile</select><input type='submit' name='goto' value='Go'></form></td></tr></table> </div> <div id='sidebar'> <br> </div> <div id='contentbar'> </div> </div> <div id='navbar'> <ul id='nav'> <li class='top'><a href='?id=1663' title='' class='top_link'><span>Home</span></a></li> <li class='top'><a href='?id=1235' title='' class='top_link'><span>Overview</span></a></li> <li class='top'><a href='?id=1236' title='' class='top_link'><span>History</span></a></li> <li class='top'><a href='?action=Store' title='' class='top_link'><span>Buy</span></a></li> <li class='top'><a href='?action=Downloads' title='' class='top_link'><span>Downloads</span></a></li> <li class='top'><a href='#' title='' class='top_link'><span class='down'>Documentation</span></a> <ul class='sub'> <li><a href='?action=Documents&id=1' title=''>Table of Contents</a></li> <li><a href='?action=Documents&id=1&q=-&sort=age' title=''>Recent Changes</a></li> <li><a href='?action=Documents&id=1261' title=''>Mailing Lists</a></li> <li><a href='?action=Bug Tracker' title=''>Bug Tracker</a></li> <li><a href='?action=Documents&id=147' title=''>Contact Us</a></li> </ul> </li> <li class='top'><a href='#' class='top_link'><span class='down'>Account</span></a> <ul class='sub'> <li><table><form method='post' action='?action=Documents&id=416'> <tr><td class='label'>Username:</td><td><input type='text' name='username' size='13' value=''></td></tr> <tr><td class='label'>Password:</td><td><input type='password' name='password' size='13'></td></tr> <tr><td class='label' colspan='2'><input type='Submit' name='signin' value='Sign In'></td></tr> </form></table></li> <li><a href='?action=Forgot Password' title=''>Lost your password?</a></li> <li><a href='?action=Register' title='Creating an account is required to access private registration records and to obtain full usage of this site'>Register</a></li> </ul> </li> <li class='top'><a href='#' class='top_link'><span class='down'>SISTER SITES</span></a> <ul class='sub'> <li><a href='http://www.grasshopperllc.com' title='The developers of PageStream and more. Creating applications and custom solutions for you.'>GrasshopperLLC</a></li> <li><a href='http://www.pagestream.net' title='The place to be to share knowledge, files and more.'>PageStream Forums</a></li> </ul> </li> </ul> <div id='navend'></div> </div> <div id='footer'> <table><tr><td id='footer-copyright'> In the high plains of South Dakota, USA<br>Copyright © 1985-2017 <a href='http://www.grasshopperllc.com'>GrasshopperLLC</a><br>All Rights Reserved.<br> <a href='mailto:support@pagestream.org'>support@pagestream.org</a></td> <td id='footer-designer'>Designed by <a href='http://www.djnick.rs'>www.djnick.rs</a><br> Page last updated @ 2008.03.12</td></tr></table> </div> </body> </html>