# f.launch

**URL:** <https://forum.xojo.com/t/f-launch/19652>\
**Category:** Getting Started\
**Created:** [October 6, 2014, 3:05pm UTC](https://forum.xojo.com/t/f-launch/19652 "2014-10-06T15:05:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Owen\_Taylor](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/5f8ce5/32.png) [@Owen\_Taylor](https://forum.xojo.com/u/Owen_Taylor)\
**Post date:** [October 6, 2014, 3:05pm UTC](https://forum.xojo.com/t/f-launch/19652/1 "2014-10-06T15:05:04Z")

</div>

Should this work?

` dim f as FolderItem
  f = Volume(0).Child("Applications").child("Dictionary")
  f.launch`

I can’t get any response, but then i’m a newby …

Owen

---

<div class="post-metadata">

**Author:** ![Kenneth\_Lossman](https://forum.xojo.com/user_avatar/forum.xojo.com/kenneth_lossman/32/2875_2.png) [@Kenneth\_Lossman](https://forum.xojo.com/u/Kenneth_Lossman)\
**Post date:** [October 6, 2014, 3:07pm UTC](https://forum.xojo.com/t/f-launch/19652/2 "2014-10-06T15:07:30Z")

</div>

You should check to see if the folderitem is Nil or that it exists before you try and launch it, but yes this should work provided that the OS knows what application to launch file “Dictionary” with.

---

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [October 6, 2014, 3:11pm UTC](https://forum.xojo.com/t/f-launch/19652/3 "2014-10-06T15:11:54Z")

</div>

Did you mean:

` dim f as FolderItem
  f = specialfolder.Applications.child("Dictionary.app")
  f.launch`

---

<div class="post-metadata">

**Author:** ![Kenneth\_Lossman](https://forum.xojo.com/user_avatar/forum.xojo.com/kenneth_lossman/32/2875_2.png) [@Kenneth\_Lossman](https://forum.xojo.com/u/Kenneth_Lossman)\
**Post date:** [October 6, 2014, 3:15pm UTC](https://forum.xojo.com/t/f-launch/19652/4 "2014-10-06T15:15:59Z")

</div>

dim f as FolderItem  
f = specialfolder.Applications.child(“Dictionary.app”)

if f \<\> AND f.exists = True Then  
f.launch  
else  
msgbox “File Does Not Exists”  
End If

---

<div class="post-metadata">

**Author:** ![Kenneth\_Lossman](https://forum.xojo.com/user_avatar/forum.xojo.com/kenneth_lossman/32/2875_2.png) [@Kenneth\_Lossman](https://forum.xojo.com/u/Kenneth_Lossman)\
**Post date:** [October 6, 2014, 3:16pm UTC](https://forum.xojo.com/t/f-launch/19652/5 "2014-10-06T15:16:23Z")

</div>

Sorry forgot something…

dim f as FolderItem  
f = specialfolder.Applications.child(“Dictionary.app”)

if f \<\> Nil AND f.exists = True Then  
f.launch  
else  
msgbox “File Does Not Exist”  
End If

---

<div class="post-metadata">

**Author:** ![Owen\_Taylor](https://forum.xojo.com/letter_avatar_proxy/v4/letter/o/5f8ce5/32.png) [@Owen\_Taylor](https://forum.xojo.com/u/Owen_Taylor)\
**Post date:** [October 6, 2014, 3:23pm UTC](https://forum.xojo.com/t/f-launch/19652/6 "2014-10-06T15:23:32Z")

</div>

Thanks very much Jeff and Kenneth - problem solved!

---

<div class="post-metadata">

**Author:** ![Kenneth\_Lossman](https://forum.xojo.com/user_avatar/forum.xojo.com/kenneth_lossman/32/2875_2.png) [@Kenneth\_Lossman](https://forum.xojo.com/u/Kenneth_Lossman)\
**Post date:** [October 6, 2014, 3:33pm UTC](https://forum.xojo.com/t/f-launch/19652/7 "2014-10-06T15:33:53Z")

</div>

Glad to help…

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:26pm UTC](https://forum.xojo.com/t/f-launch/19652/8 "2020-10-29T17:26:37Z")

</div>


