Re: [Q] How to access a bundle?
Re: [Q] How to access a bundle?
- Subject: Re: [Q] How to access a bundle?
- From: Luther Fuller <email@hidden>
- Date: Tue, 12 Sep 2006 17:59:06 -0500
I've done this many times with no problems. Recently, a friend of
mine claimed that Python was way faster that AppleScript at doing
arithmetic (+, -, x, ...) on integer strings. He wrote a Python
program that does arithmetic on integer strings of any length. The
program is a Unix Executable File called "arithmetic" and is stored
in my application's /Contents/Resources/ folder. I create 'comdPath'
like this ...
tell application "Finder"
((path to me) as text) & "Contents:Resources:arithmetic"
set comdPath to quoted form of (POSIX path of the result)
end tell
When I need to multiply two long integer strings, I write something
like ...
do shell script comdPath & " " & "2947500377593728465" & " x " &
"5906284290384594739"
Of course, I usually use variables. And he was right, "arithmetic"
does integer string arithmetic waaaaay fast (instantly), while an
AppleScript arithmetic handler takes 10s of seconds.
On Sep 12, 2006, at 5:26 PM, JongAm Park wrote:
Hello.
is there a way to a Cocoa-AppleScript application to access its
bundle resource? I write a wrapper to a unix program. I would like
to put the command-line unix program itself into the Cocoa-
AppleScript program's .app directory.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden