View Full Version : Is it possible to do this in Xcode
Apr 18, 2013, 11:16 PM
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.
Apr 18, 2013, 11:48 PM
Sounds more like AppleScript (http://en.wikipedia.org/wiki/AppleScript) is what you're looking for.
Apr 19, 2013, 01:11 AM
I would just put the file into an AppleScript application bundle and use the Finder to open it with the default application, for example:
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