• 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: Where is the Missing Link?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is the Missing Link?


  • Subject: Re: Where is the Missing Link?
  • From: Jon Pugh <email@hidden>
  • Date: Sat, 29 Sep 2001 11:22:16 -0700

At 10:15 PM +0200 9/25/2001, Lourens Smak wrote:
>I've seen many times people don't realize that cmd-c with files selected
>copies the filenames to the clipboard:

Better than that, it copies an object specifier to the clipboard too.

The script editors have a Paste Reference command which puts this object specifier into the script window. Very handy for referring to specific files and folders.

I've also written a script which uses this to implement a Copy/Paste of files notion. Here's the Paste File script:

set ci to clipboard info
set t to {}
repeat with i in items of ci
if item 1 of i is reference then
set t to the clipboard as reference
exit repeat
else if item 1 of i is list then
set t to the clipboard as list
exit repeat
end if
end repeat
tell application "Finder"
ignoring application responses
duplicate t to selection
end ignoring
end tell

Hey, no long lines OR special characters. Check it out.

Jon


References: 
 >Re: Where is the Missing Link? (From: Lourens Smak <email@hidden>)

  • Prev by Date: Re: Working symbol
  • Next by Date: Re: AppleScript Enigma (ish...)
  • Previous by thread: Re: Where is the Missing Link?
  • Next by thread: Newbie Perspective - AS adoption/Starter Kit
  • Index(es):
    • Date
    • Thread