set {astid, text item delimiters} to {text item delimiters, ".xls", ".ppt"}
set theseFiles to text items of (do shell script "/usr/bin/find ~ -name 'Template.xls' ;")
set text item delimiters to astid
set LIst_Of_Names to paragraphs of (theseFiles as string)
do shell script ("/usr/bin/open " & theseFiles)
What it does:
I have the script above that files a file called “Template.xls” 's path.
/Users/account/etc…/Template.xls
What I’m trying to do:
¢ find files named “Template.xls” & “Template.ppt”
¢ open both files usng do shell script
The only problem is that when I distribute this script I don’t want to hardcode where the app might reside not to mention what version of office they might have. By just opening the file it’ll automatically open by the default application. Thanks for the suggestion though.