Hi Chipp,
As others have said, you need to include the word "file" or "alias"
before the file path in your AppleScript. Also, AppleScript file paths
are different to the Unix style paths used by Rev. e.g. for the same
test file, AppleScript gives me this path "Sarah
HD:Users:sarah:Desktop:test
On 10 Dec 2004, at 10:03, Chipp Walters wrote:
Hi all. Need a bit of help here...why doesn't this work?
on mouseUp
answer file ""
if it is empty then exit to top
put it into pPDFpath
replace "/" with ":" in pPDFpath
if char 1 of pPDFpath is ":" then delete char 1 of pPDFpath
put "tell a
Chipp wrote:
> Hi all. Need a bit of help here...why doesn't this work?
>
> on mouseUp
> answer file ""
> if it is empty then exit to top
> put it into pPDFpath
> replace "/" with ":" in pPDFpath
> if char 1 of pPDFpath is ":" then delete char 1 of pPDFpath
> put "tell application " "e& "Fi
Hi all. Need a bit of help here...why doesn't this work?
on mouseUp
answer file ""
if it is empty then exit to top
put it into pPDFpath
replace "/" with ":" in pPDFpath
if char 1 of pPDFpath is ":" then delete char 1 of pPDFpath
put "tell application " "e& "Finder" & quote & cr into tSc