<< GetFigureMark | GetFilePath >> |
Top: Documentation Library | Up: G Commands |
GetFile System Query Command
GetFile
Opens a file selector to get a filename and path from the user.
getfile
TITLE/s The file selector title.
mode/k The file selector type: LOAD (default) | SAVE.
PATH/s The default file path. Default=last.
FILE/s The default filename to open.
Default=last.
POSBUTTON/s The label for the positive button.
Default=Ok.
NEGBUTTON/s The label for the negative button.
Default=Cancel.
Results:
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.
Notes:
The file selector does not support keyboardequivalents for buttons, so do not use underscores in the button labels.
Examples:
'getfile TITLE "Save a file" save path ram: ยจ posbutton Save'
GetFile Command Definition url:PGScmd/getfile
created:2006-03-30 22:20:07 last updated:2008-03-12 11:27:40
Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.
User Contributed Comments For GetFile | sign in to add a comment |
Dan Kilroy wrote... | 2006-05-04 16:40:21 |
Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above. Gets the {...} . fullfilepath = GetFile ([LOAD | SAVE] [FILE file][PATH path] [TITLE title][POSBUTTON ok] [NEGBUTTON cancel])
ARexx: Applescript: | |
User Contributed Comments For GetFile | sign in to add a comment |
<< GetFigureMark | GetFilePath >> |
Top: Documentation Library | Up: G Commands |