Re: Include "\" in do shell script command
Re: Include "\" in do shell script command
- Subject: Re: Include "\" in do shell script command
- From: "Johnny AppleScript" <email@hidden>
- Date: Fri, 18 Jul 2003 14:15:20 -0600
On 03/07/18 12:19 PM, "Timothy K. Wilkinson" <email@hidden> wrote:
>
The problem is that using that syntax works just fine if you actually put
>
the id in there.[...] Both return the same error telling me the record can't
>
be found, yet I know
>
the record exists. If I look in the event log it shows the command being
>
issued in exactly the same way as when I actually enter an ID into the
>
string. It seems as if the variable is the weak link here. I tried running
>
the above and declaring the contents of the variable earlier in the script
>
and got the same error.
>
Any other ideas?
You're not by any chance getting your ID source passed from something like
Safari, or maybe a SQL or PHP database, are you? I've run into numerous
glitches recently where a leading or trailing space is being added to
extracted data. Worth a look.
Try adding:
Set the_id_check to ">" & the_id & "<"
Log the_id_check
-- and/or
Display dialog the_id_check
--use the output to find hidden leading/trailing characters
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.