• 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: How to convert Finder reference?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert Finder reference?


  • Subject: Re: How to convert Finder reference?
  • From: mark <email@hidden>
  • Date: Fri, 12 Dec 2003 08:39:58 -0800

on 12/11/03 2:25 PM, Michelle Steiner at email@hidden wrote:

> On Dec 11, 2003, at 2:52 PM, Mark Dawson wrote:
>
>> I want to convert a Finder reference to a string
>> (duplicate x; set z to the result as string)
>
> This works for me:
>
> tell application "Finder"
> set x to item 1 of (the selection as list)
> duplicate x
> set z to the result as string
> end tell
>
> -- Michelle

That seems to be what I'm doing:
duplicate theFile
set newFile to the result as string

However, I'm get an error, "Can't make <<class docf>>"x copy.premier" of
<<class cfol>> "Output" ... (file path) ... of application "Finder" into a
string

I'm getting "theFile" from this line:
set theFile to (choose file with prompt "pick")
_______________________________________________
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: How to convert Finder reference?
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: How to convert Finder reference? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: AppleScript, Panther, and Internet Connect
  • Next by Date: RE: Disk Utility Error No Valid Packages
  • Previous by thread: Re: How to convert Finder reference?
  • Next by thread: Re: How to convert Finder reference?
  • Index(es):
    • Date
    • Thread