Re: Script running the wrong application
Re: Script running the wrong application
- Subject: Re: Script running the wrong application
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 25 Aug 2001 10:00:07 -0700
On 8/25/01 9:20 AM, "Victor Yee" <email@hidden> wrote:
>
On Sat, 25 Aug 2001 07:45:22 -0700, Michelle Steiner wrote,
>
>
> --> GraphicConverter got an error: Can't get item 1 of {alias
>
> "Dora:Desktop Folder:a:Michelle1.jpg", alias "Dora:Desktop
>
> Folder:a:kettle.jpg"}. Access not allowed.
>
>
GraphicConvertor does seem a little picky:
>
>
set photo to (choose file of type {"JPEG"}) as string
>
tell application "GraphicConverter PPC"
>
open alias photo
>
end tell
>
--> "GraphicConverter PPC got an error: Can't get alias \"Docs:Catchall:images
>
misc:smile.jpg\". Access not allowed."
>
>
>
> Anyway, at least there's a simple workaround:
>
>
>
> open the photo as alias
>
>
set photo to (choose file of type {"JPEG"}) as string
>
tell application "GraphicConverter PPC"
>
open photo as alias
>
end tell
>
--> picture opens with GraphicConverter
>
>
More finicky than my cat ;)
>
Once again, I'm sure it's because GC's 'open' command takes a list as its
argument.
alias (something-that's-not-actually-a-list) -- your own attempt
doesn't open, but
(something-that's-not-actually-a-list) as alias -- GC's own 'as alias'
implementation, defined by its developers
is probably coerced by GC to
{(something-that's-not-actually-a-list) as alias}
and opens.
?
--
Paul Berkowitz