• 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: On the difficulties of "/"" in Applescript with example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On the difficulties of "/"" in Applescript with example


  • Subject: Re: On the difficulties of "/"" in Applescript with example
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 19 Oct 2013 09:12:21 +1100

On 19 Oct 2013, at 2:03 AM, Walter Bushell <email@hidden> wrote:

> tell application "AppleScript Editor"
> 	choose file
> 		--> alias "After Ewe Firewire:Users:Walter:Music:\\\"ur\\\"file"
> end tell
> tell application "Finder"
> 	get alias "After Ewe Firewire:Users:Walter:Music:\\\"ur\\\"file"
> 		--> document file "\\\"ur\\\"file" of folder "Music" of folder "Walter" of folder "Users" of startup disk
> 	(*document file \"ur\"file of folder Music of folder Walter of folder Users of startup disk*)
> 	get document file "\\\"ur\\\"file" of folder "Music" of folder "Walter" of folder "Users" of startup disk
> 		--> alias "After Ewe Firewire:Users:Walter:Music:\\\"ur\\\"file"
> end tell
> (*alias After Ewe Firewire:Users:Walter:Music:\"ur\"file*)
> tell application "Finder"
> 	get name of document file "\\\"ur\\\"file" of folder "Music" of folder "Walter" of folder "Users" of startup disk
> 		--> "\\\"ur\\\"file"
> end tell
> Result:
> "\\\"ur\\\"file"

That suggests the file appears to the user in the Finder as \"ur\"file, not "ur"file. In which case, I can't see any problem; the \ is being escaped, as is the quote.


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <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


References: 
 >On the difficulties of "/"" in Applescript with example (From: Walter Bushell <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: Shane Stanley <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: Walter Bushell <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: Shane Stanley <email@hidden>)
 >Re: On the difficulties of "/"" in Applescript with example (From: Walter Bushell <email@hidden>)

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