• 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: Defing a Path correctly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defing a Path correctly


  • Subject: Re: Defing a Path correctly
  • From: Martin Orpen <email@hidden>
  • Date: Wed, 20 Jul 2005 00:42:05 +0100

on 19/7/05 23:05, Adam Wuellner at email@hidden wrote:

> tell application "Finder"
> local s, o, f, tids
> set s to the selection
> set o to {}
> repeat with f in s
> set f to f as alias
> set end of o to POSIX path of f
> end repeat
> set {tids, AppleScript's text item delimiters} to {AppleScript's text
> item delimiters, return}
> set the clipboard to (o as string)
> set AppleScript's text item delimiters to tids
> end tell

How about:

tell application "Finder" to set the clipboard to "'" & (POSIX path of
(selection as Unicode text)) & "'"

Longer version of the script here where you can choose Mac, Unix or URL
paths:

<http://prometheus.idea-digital.com/phpbb2/viewtopic.php?t=256>

Regards

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Defing a Path correctly (From: Adam Wuellner <email@hidden>)

  • Prev by Date: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Next by Date: Re: Choose from list
  • Previous by thread: Re: Defing a Path correctly
  • Next by thread: Re: Defing a Path correctly
  • Index(es):
    • Date
    • Thread