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

ASEditor Drag&Drop


  • Subject: ASEditor Drag&Drop
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 28 Oct 2013 11:56:34 -0500

On Oct 17, 2013, at 9:30 AM, Walter Bushell started the thread "On the difficulties of "/"" in Applescript with example". I just got a message from Walter concerning this current thread. It prompted me to experiment a bit.

On my desktop, I named a file "some "file".rtf". Notice the quotes within the file name.

When I drag & drop this file into a Smile script window, I get …

alias "OS_X:Users:lutherfuller:Desktop:some \"file\".rtf"

If I then log this '… as text', I get ...

OS_X:Users:lutherfuller:Desktop:some "file".rtf

If I do the same in ASE, I get …

/Users/lutherfuller/Desktop/some "file".rtf

I rewrite this as …

posix file "/Users/lutherfuller/Desktop/some "file".rtf"

which gives a syntax error. In order to avoid the error, I have to insert
slashes before the internal quotes to get …

POSIX file "/Users/lutherfuller/Desktop/some \"file\".rtf"

I can use the work around, described in my original post, to convert this to an alias.

This is a confusing behavior in ASE that can be worked around, but it's simpler to use Smile.



 _______________________________________________
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: Luther Fuller <email@hidden>
    • Re: ASEditor Drag&Drop
      • From: Paul Berkowitz <email@hidden>
References: 
 >On the difficulties of "/"" in Applescript with example (From: Walter Bushell <email@hidden>)

  • Prev by Date: ASEditor Drag&Drop
  • Next by Date: Re: ASEditor Drag&Drop
  • Previous by thread: Re: On the difficulties of "/"" in Applescript with example
  • Next by thread: Re: ASEditor Drag&Drop
  • Index(es):
    • Date
    • Thread