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

Re: Clipboard use


  • Subject: Re: Clipboard use
  • From: John Delacour <email@hidden>
  • Date: Tue, 22 Oct 2002 23:04:46 +0100
  • Mac-eudora-version: 5.3a5

At 4:47 pm -0400 22/10/02, email@hidden wrote:

I need to take the value that is returned when a user chooses a folder via
a prompt and copy it to the clipboard. I've tried doing it this way:
set dpath to choose folder with prompt "locate Data Folder"
copy dpath to clipboard

However I get an error saying "can't set clipboard to alias". I've tried
adding an AS STRING to the code to return the value as a string instead of
as an alias or folder to no avail.



set folderAlias to choose folder with prompt "locate Data Folder"
set THE clipboard to folderAlias as string

or

set THE clipboard to "" & (choose folder with prompt "...")


JD
_______________________________________________
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: 
 >Clipboard use (From: email@hidden)

  • Prev by Date: user name (long name)
  • Next by Date: Re: applescripters in germany?
  • Previous by thread: Re: Clipboard use
  • Next by thread: Re: Clipboard use
  • Index(es):
    • Date
    • Thread