• 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: Coercion question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercion question


  • Subject: Re: Coercion question
  • From: Pier Kuipers <email@hidden>
  • Date: Fri, 15 Jun 2001 12:49:57 +0100

At 10:07 +0200 15/6/01, Jan Pieter Kunst wrote:
>Hello all,
>
>Is it possible to coerce this:
>
> alias "Disk:Folder:File"
>
>to this:
>
> {file "File" of folder "Folder" of startup disk}

I don't think that's possible without having to tell the finder, but
this should do it:

set theAlias to "Disk:Folder:File"
tell application "Finder" to set theFile to (item theAlias) as list
--> {file "File" of folder "Folder" of startup disk of application "Finder"}

Of course your alias will have to point to an existing file.
Hope this helps,

Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *

2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754

http://www.visualid.com


References: 
 >Coercion question (From: Jan Pieter Kunst <email@hidden>)

  • Prev by Date: Re: Coercion question
  • Next by Date: Re: Determine if a filename exists in a LARGE folder
  • Previous by thread: Re: Coercion question
  • Next by thread: Re: Coercion question
  • Index(es):
    • Date
    • Thread