[Hidden-tech] AppleScript Question

Will Loving will at dedicationtechnologies.com
Mon Sep 25 17:51:40 EDT 2006


I have a small AppleScript question that I'm hoping someone can answer. I
have a small executable AppleScript that launches a Java application. There
is a file path specified in the executable that I would like to make
variable via a text file that will reside in the same directory as the
executable. 

Is it possible to use a variable for the path in the AppleScript and have it
look to the text file where the variable is declared?

The AppleScript is very simple and looks like this:

tell application "Terminal"
    do script "java -Xmx256m -classpath '/bclive/Auction
Files/Java:/bclive/Auction Files/Java/AuctionManager.jar' manager.Main"
end tell

I want to be able to set the path in the text file named something like
"JavaPath.txt" rather than have to edit the executable AppleScript every
time I want to change it.

Anyone know?

Thanks,

Will

Will Loving, President
Dedication Technologies, Inc.


-- 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
DEDICATION TECHNOLOGIES, INC.

- Developers of StudioSchool Pro -

Professional FileMaker Pro Database Development
For Non-Profits, Business, and Education
-----------------------------------
7 Coach Lane  Amherst, MA 01002-3304   USA
Tel:1 413 253-7223   (GMT ­5)  Fax:1 206 202-0476
will at dedicationtechnologies.com
http://dedicationtechnologies.com     http://studioschoolpro.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-









Google

More information about the Hidden-discuss mailing list