PDA

View Full Version : [AS2] opening macintosh applications


djambret
03-02-2009, 11:48 AM
hello, since i'm a newbie here, i'd like to ask some help.

i'm a macinotsh users,
i want to open an application in my application folder through my .swf file
ex: i want to open adobe photoshop.app,
and it is located in /Applications/Adobe Photoshop/Adobe Photoshop.app
what AS command should i type?

sorry for the bad language.
i'd be very grateful if someone could help this poorboy here :confused:
thanks! ;)

kkbbcute
03-02-2009, 02:39 PM
Wait, let me clarify your question, you want to have a line of code in Flash to open Photoshop for you?

If that is what you want, I can name 3 reasons why I don't think it is possible.
1) Everybody might have had their Adobe folder in a different place on their hard drive, so even if this was possible it would be redundant.

2)Flash has very limited commands when it comes to opening things or altering anything on the local computer for security reasons.

3)Why would you want to do that? (Fine, this is just an inquisitive question)

northcode
03-02-2009, 04:33 PM
It is possible but you have to do it with an AppleScript that you keep in the FSCommand "sandbox" folder. The AppleScript can do all the work of figuring out where PhotoShop is installed and launching it, all you have to do is EXEC the AppleScript from Flash.