• 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: FileMaker Pro, get image by reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FileMaker Pro, get image by reference


  • Subject: Re: FileMaker Pro, get image by reference
  • From: Paul Berkowitz <email@hidden>
  • Date: Sun, 24 Nov 2002 10:48:17 -0800

On 11/24/02 11:11 PM, "Andy Wylie" <email@hidden> wrote:

>
> FWIW...
>
> tell application "Finder"
> activate
> copy file "path string" to desktop
> end tell
>
> works here under 8.6 with no OSAX, copy compiles as a language keyword when
> followed by a file spec. The coercion to alias is superfluous Gary.

Yes, it must be one of those undocumented Finder coercions. So must the
coercion of alias back to string (file spec). I guess it's doing what it's
meant to, which is allowing scripters who don't know the correct syntax
(duplicate) to use 'copy', as in the UI. I suppose they'd have to discover
this the hard way when moving to less forgiving apps (i.e. every other app
in existence). I imagine this is a very old topic; whether the Finder should
provide these lenient coercions to help newbies, or whether it would be
kinder to make sure they learn the correct syntax from the beginning. It
must be part of the AS mission to present AppleScript as "easy". OK.

I'm sorry to all concerned. I wasn't aware of this Finder coercion. I just
checked - it even works in OS 10.2.2, although 'copy' in the Finder
Dictionary says :

copy: (NOT AVAILABLE YET) Copy the selected items to the clipboard (the
Finder must be the front application)
copy

Evidently 'copy "file path" to "folder path"' is actually a different sort
of copy than the one which is not available yet - it's actually being
coerced to 'duplicate' (<<event coreclon>>). I find this rather confusing
myself, but if it's supposed to be a Good Thing, I guess I can learn it too.


--
Paul Berkowitz
_______________________________________________
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.

  • Follow-Ups:
    • Re: FileMaker Pro, get image by reference
      • From: Gary Lists <email@hidden>
References: 
 >Re: FileMaker Pro, get image by reference (From: Andy Wylie <email@hidden>)

  • Prev by Date: Re: FileMaker Pro, get image by reference
  • Next by Date: FileMaker Pro, get ID's of records found
  • Previous by thread: Re: FileMaker Pro, get image by reference
  • Next by thread: Re: FileMaker Pro, get image by reference
  • Index(es):
    • Date
    • Thread