• 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: Walter Bushell <email@hidden>
  • Date: Thu, 17 Oct 2013 19:02:35 -0400

On Oct 17, 2013, at 6:17 PM, Shane Stanley wrote:

> On 18 Oct 2013, at 1:30 AM, Walter Bushell <email@hidden> wrote:
>
>> -- merely once escaped  quotes fail
>> try
>> 	set x to POSIX file "/Users/Walter/Music/\"ur\"file"
>> 	log x
>> 	tell application "Finder" to set B to name of file x
>> 	--log {"B quoted= ", b}
>> on error erorrStr number errnum
>> 	log {erorrStr, errnum}
>>
>> end try
>
> I don't see that here:
>
> set x to POSIX file "/Users/shane/Desktop/Date4 \"test\".txt"
> tell application "Finder" to set B to name of file x
> --> "Date4 \"test\".txt"
>

But here I get from

tell application "Finder" to set x to alias "After Ewe Firewire:Users:Walter:Music:\"ur\"file"

--->error "Finder got an error: Can’t get alias \"After Ewe Firewire:Users:Walter:Music:\\\"ur\\\"file\"." number -1728

or just
set x to alias "After Ewe Firewire:Users:Walter:Music:\"ur\"file"
error "File alias After Ewe Firewire:Users:Walter:Music:\"ur\"file of «script» wasn’t found." number -43
or
tell application "iTunes" to get track "\"ur\"file"
>>>>>error "iTunes got an error: Can’t get track \"\\\"ur\\\"file\"." number -1728 from track "\"ur\"file"

Strangely enough the popup windows were had the name submitted.


 _______________________________________________
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: On the difficulties of "/"" in Applescript with example
      • From: Shane Stanley <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>)

  • Prev by Date: Re: AppleScript-Users Digest, Vol 10, Issue 357
  • Next by Date: Re: On the difficulties of "/"" in Applescript with example
  • 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