Re: difficulty.
Re: difficulty.
- Subject: Re: difficulty.
- From: Emmanuel <email@hidden>
- Date: Sun, 4 May 2003 14:36:48 +0200
On Friday, May 2, 2003, at 11:24 PM, Emmanuel wrote:
>
>
For instance, I use pdf2ps and it does not accept the slightest space in the file names, including when quoted.
At 9:40 AM +0200 03/05/03, Jean-Baptiste LE STANG wrote:
>
>
Same here, but it's a 'bug' from pfd2ps :=)
At 3:05 PM -0700 03/05/03, Christopher Nebel wrote:
>
>
(As it happens, I have Ghostscript installed myself, and I used pdf2ps on a file with spaces in the name with no problem. I'm not sure what your difficulty is.)
I find this bizarre.
1. I make a screen capture (on the desktop). It's named "Picture 1.pdf"
2. I duplicate "Picture 1.pdf" into "Picture1.pdf", still on the Desktop
3. I run:
set f to (path to desktop from user domain)
set f to "" & f & "Picture 1.pdf" -- then "Picture1.pdf"
set f to POSIX path of alias f
set g to (text 1 thru -4 of f) & "ps"
set f to quoted form of f
set g to quoted form of g
set c to "pdf2ps " & f & " " & g
set c to "export PATH=/usr/local/bin/:$PATH;" & c
do shell script c
I get an error.
4. I change "Picture 1.pdf" into "Picture1.pdf" in line 2
5. I re-run.
It works.
So, this is my difficulty: I make my script work by suppressing the only space in the file name, while you say that you have no problem (nor difficulty, I presume) having it work on a file with several spaces in the name.
Anyone experiencing a difficulty similar to mine?
Emmanuel
_______________________________________________
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.