Re: On the difficulties of "/"" in Applescript with example
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