Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

SteveniMac

macrumors newbie
Original poster
Apr 15, 2013
2
0
I want to know whether it is possible for Xcode to create any type of application that when opened, it would open a specified file on the desktop. It would also help if you could post the code to do this as well.
 

Red Menace

macrumors 6502a
May 29, 2011
578
226
Colorado, USA
I would just put the file into an AppleScript application bundle and use the Finder to open it with the default application, for example:

Code:
set theFile to path to resource "Fake Profile.spx" -- a fake system profile
tell application "Finder" to open theFile -- open the file using the default application
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.