Re: File-open wierdness in OS X 10.2
Re: File-open wierdness in OS X 10.2
- Subject: Re: File-open wierdness in OS X 10.2
- From: Mr Tea <email@hidden>
- Date: Mon, 16 Sep 2002 20:56:40 +0100
This from John Fowler - dated 14-9-02 04.52 pm:
>
I have a problem with applescripting bbedit to open files.
>
>
This formulation
>
>
on openthething(thething)
>
tell application "BBEdit 6.5"
>
open file thething
>
end tell
>
end openthething
>
>
>
works when called by
>
>
set athing to demofolder & filename
>
openthething(athing)
>
>
but not when called by
>
>
tell application "Finder"
>
set demofiles to (list folder demofolder)
>
end tell
>
set filename2 to item 10 of demofiles
>
set athing to demofolder & filename2
>
openthething(athing)
>
>
I get "file 'so and so' doesn't understand the _open_ message" with the
>
latter
Yup. I can cofirm that it don't work in 10.2
You can always use something like
on openthething(thething)
tell application "Finder"
open alias thething using file "Mezzanine!:Applications:BBEdit
:BBEdit 6.5"
end tell
end openthething
There are various ways of getting the path to BBEdit on your system, but I
can't remember them off the top of my head.
Nick
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.