I use this script to open a .png or .txt file on OSX
Is there an equivalent on windows ?
Code: Select all
on doLaunchOneFile pPathEx
if char -4 to -1 of pPathEx = ".png" then
launch pPathEx with "/Applications/Preview.app"
end if
if char -4 to -1 of pPathEx = ".rtf" then
launch pPathEx with "/Applications/TextEdit.app"
end if
end doLaunchOneFile
Jean-Marc