• 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: difficulty.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: difficulty.


  • Subject: Re: difficulty.
  • From: Axel Luttgens <email@hidden>
  • Date: Tue, 06 May 2003 09:33:05 +0200

Emmanuel wrote:

>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:
>
>[snip]
>
>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?
>

No exactly, as I haven't Ghostscript installed here.
But could following make a difference?

Let's say I have a file called 'test 2.txt' on the Desktop.
In AppleScript:

set P1 to (POSIX path of (path to desktop folder))
set P1 to quoted form of (P1 & "test 2.txt")
--> '/Users/luttgens/Desktop/test 2.txt'

But dragging the file's icon over a Terminal window yields:

/Users/luttgens/Desktop/test\ 2.txt

I'm not sure, but I think having encountered some commands preferring
second form.
_______________________________________________
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.

References: 
 >Re: mac to unix path names (From: Jean-Baptiste LE STANG <email@hidden>)
 >Re: difficulty. (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: More fun with Unicode
  • Next by Date: Re: More fun with Unicode
  • Previous by thread: Re: difficulty.
  • Next by thread: Re: mac to unix path names
  • Index(es):
    • Date
    • Thread