• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script running the wrong application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Script running the wrong application
      • From: Ken Grimm <email@hidden>
References: 
 >Re: Script running the wrong application (From: Victor Yee <email@hidden>)

  • Prev by Date: Re: Script running the wrong application
  • Next by Date: Re: Script running the wrong application
  • Previous by thread: Re: Script running the wrong application
  • Next by thread: Re: Script running the wrong application
  • Index(es):
    • Date
    • Thread