• 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: Getting FMP to print to .ps via AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting FMP to print to .ps via AppleScript


  • Subject: Re: Getting FMP to print to .ps via AppleScript
  • From: email@hidden
  • Date: Mon, 10 Feb 2003 19:57:45 +0000

I get this error message from the Finder:

Finder got an error: Can't set file "PDF:Tool Bar Dock.pdf" to
"Annual Data-1.pdf". [Error -10006}.

In Script Editor, +set the name of theknownPath to newName & ".pdf";
is highlighted when the error message displays.

Oz

At 11:11 -0700 10/2/03, David Crowe wrote:
>Oz;
>
>What error are you getting? Is it from FileMaker or the Finder. I
>modified it for my purposes, and it seemed to work fine.
>
>set theKnownPath to "+In Basket+:NewName.pdf"
>tell application "FileMaker Pro" to set the newName to cell "Source
>Filename" of current record
>tell application "Finder" to set the name of file theKnownPath to
>newName & ".pdf"
>
>
>I'm a little suspicious of the "-1" inside the name of the cell...
>
>- David Crowe
>
>At 4:54 PM +0000 2/10/03, email@hidden wrote:
>>>If you can't get the filename exactly what you want, why don't you
>>>go with the flow, let FMP create the wrong file name and then just
>>>copy or move the file to the name and place that you want it to be?
>>>
>>>- David Crowe
>>
>>Amazingly, I am working on that aspect just now - but again I can't
>>get this to work either as Applescript called from FMP or from
>>AppleScript Editor. My script is, from FMP :
>>
>>Set theKnownPath to "PDF:Tool Bar Dock.pdf"
>>(--ie FMP's usual generic name; also saves as "Untitled")
>>tell application "FileMaker Developer" to set the newName to cell
>>"Applescript Name Annual Extract-1" of current record
>>tell application "Finder" to set the name of file theKnownPath to
>>newName & ".pdf"
>>
>>What am I doing wrong?
>>
>>Thanks for any help
>>
>>
>>
>>Oz
_______________________________________________
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.

  • Follow-Ups:
    • Re: Getting FMP to print to .ps via AppleScript
      • From: David Hood <email@hidden>
    • Re: Getting FMP to print to .ps via AppleScript
      • From: Nigel Smith <email@hidden>
References: 
 >Re: Getting FMP to print to .ps via AppleScript (From: email@hidden)
 >Re: Getting FMP to print to .ps via AppleScript (From: David Crowe <email@hidden>)

  • Prev by Date: Re: Path to me broken?
  • Next by Date: Re: Saving a document in Safari
  • Previous by thread: Re: Getting FMP to print to .ps via AppleScript
  • Next by thread: Re: Getting FMP to print to .ps via AppleScript
  • Index(es):
    • Date
    • Thread