• 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: Michelle Steiner <email@hidden>
  • Date: Fri, 12 Dec 2003 09:46:25 -0700

On Dec 12, 2003, at 9:39 AM, mark wrote:

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")

I just tried it, and it works for me.

set theFile to (choose file)
tell application "Finder"
duplicate theFile
set newFile to the result as string
end tell

--> "Dora:Users:michelle:Desktop:Dock Effects copy.app"

--
We're not human beings having a spiritual experience.
We're spiritual beings having a human experience.
_______________________________________________
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.

References: 
 >Re: How to convert Finder reference? (From: mark <email@hidden>)

  • Prev by Date: Porting my scripts to OS X
  • Next by Date: Re: Reading a file as it fills up by another program
  • Previous by thread: Re: How to convert Finder reference?
  • Next by thread: Calling Script
  • Index(es):
    • Date
    • Thread