• 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: ASEditor Drag&Drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASEditor Drag&Drop


  • Subject: Re: ASEditor Drag&Drop
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 29 Oct 2013 09:18:14 +1100

On 29 Oct 2013, at 12:25 AM, Luther Fuller <email@hidden> wrote:

which is very undesirable.

FWIW, there's a difference between "not what I want" and "undesirable". This is more a case of the former, I suspect. What did Emmanuel from Satimage say here recently? "in our scripts, we use only paths which are posix paths stored as strings". I wonder how he describes Smile's behavior.

 Is there a better work-around ?

Good grief: It's a scriptable application! You could have written the script quicker than the emails:

use ASE : application "AppleScript Editor"
use scripting additions
set thePosixPath to contents of selection of document 1 of ASE
-- escape any quotes
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"\""}
set thePosixPath to text items of thePosixPath
set AppleScript's text item delimiters to {"\\\""}
set thePosixPath to thePosixPath as text
set AppleScript's text item delimiters to saveTID
-- convert to HFS path
set hfsPath to (POSIX file thePosixPath) as text
-- insert wrapped in alias &c
set contents of selection of document 1 of ASE to "alias " & quote & hfsPath & quote

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: ASEditor Drag&Drop
      • From: Emmanuel LEVY <email@hidden>
References: 
 >ASEditor Drag&Drop (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: ASEditor Drag&Drop
  • Next by Date: Mail in_reply_to field is Null in Envelope Index
  • Previous by thread: ASEditor Drag&Drop
  • Next by thread: Re: ASEditor Drag&Drop
  • Index(es):
    • Date
    • Thread