osx - On MAC O.S., how to get the name of files that has been dropped onto apple script to boot JAR with the name of file as a argument to JAR -
In the script editor, I have written a command to boot the jar.
The shell script "CD / Desktop / Runner / Java Work Runmezer Shabar"
and saved as a script file in the form of an application. Run when I click on the script file jar.
My Requirement
I have to get the name of the file which has been deleted in the script file and its name must be given that my jar To leave the file as an argument for.
I have implemented it in Windows but can not do the same thing on Mac OS
On Windows
I have placed the boot file in the boot file with the full filename, which is left on the bat file on windows. @ Echo% * will give me a list of the files that have been deleted in the batch file.
@Echo% * @Java JavaRaj RunMajor Shrink% *
This Like I would like to implement in Mac OS
Thank you.
To add to Paul's answer
open the end objects
we have the current item, repeat object - is fine with currFile in finder, but it is a "nickname" Mac OS path - Crosfail set base to set a POSIX path Unikspath The pylical path to the shell script "dirname" & amp; Open Script "BassName" to set UnixPat FNN; Unixpath - You can ask Finder to give it to you - I will use this method because - I'm guessing that you have the shell script "CD" & amp; Base & amp; "'," & Amp; "Java-Zer" & amp; Fname end repeat
Comments
Post a Comment