{"id":740,"date":"2009-09-25T02:47:11","date_gmt":"2009-09-25T10:47:11","guid":{"rendered":"http:\/\/betips.net\/?p=740"},"modified":"2009-09-25T02:47:11","modified_gmt":"2009-09-25T10:47:11","slug":"use-a-filepanel-in-your-script","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=740","title":{"rendered":"Use a filepanel in your script"},"content":{"rendered":"<p>BeOS has long had the <em>alert<\/em> command. With alert, you can put up a little message on the screen with one to three buttons:<br \/>\n<em>alert &#8222;Hello World&#8220; &#8222;go away&#8220; &#8222;hello&#8220; &#8222;ok&#8220;<\/em><br \/>\nWith Haiku alpha1, the dev team seems to have slipped something else in quietly: <em>filepanel<\/em><br \/>\n<em>filepanel -d ~\/Desktop -t &#8222;Open a File&#8220;<\/em><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-745 alignleft\" title=\"fp\" src=\"http:\/\/betips.net\/wp-content\/uploads\/2009\/09\/fp-300x222.jpg\" alt=\"fp\" width=\"300\" height=\"222\" \/><br \/>\n<em>filepanel<\/em> returns the full pathname of the selected file to standard output. This means that scripts can now ask the user where an app should be installed, for example, or whether to put a symlink in the Deskbar menu and what to call it.<br \/>\nDocumentation seems limited to running\u00a0<em>filepanel<\/em> with the\u00a0<em>&#8211;help<\/em> parameter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BeOS has long had the alert command. With alert, you can put up a little message on the screen with one to three buttons: alert &#8222;Hello World&#8220; &#8222;go away&#8220; &#8222;hello&#8220; &#8222;ok&#8220; With Haiku alpha1, the dev team seems to have slipped something else in quietly: filepanel filepanel -d ~\/Desktop -t &#8222;Open a File&#8220; filepanel returns [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[17,4,10,11],"class_list":{"0":"post-740","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"tag-haiku","8":"tag-scripting","9":"tag-terminal"},"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=740"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/740\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}