• 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: Re: Running an applescript from a Filemaker Advanced file(Addressing Problems)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Running an applescript from a Filemaker Advanced file(Addressing Problems)


  • Subject: Re: Re: Running an applescript from a Filemaker Advanced file(Addressing Problems)
  • From: Peter Baxter <email@hidden>
  • Date: Fri, 8 Dec 2006 16:37:13 +1100

Hi Steve,

I guess you meant to send this reply to my enquiry. I don't have any problem creating joint files as I developed a script that uses part of the Automator application to join the files. My problem is to persuade an applescript on a remote computer to print the PDF file to which-ever computer has logged onto a file served by filemaker server and calls the applescript. Persuading the applescript to identify the local computer's address as the (Windows) Server sees it is my problem. I could easily do this if staff only access the filemaker file from one computer, but I need to have the script identify the network location of the computer that they are using so that it can print/save the PDF to their computer. I hope this makes it clear that the joining of PDF works, but the saving to a location does not.

Peter


On 08/12/2006, at 3:21 PM, Steve Bennett wrote:

Sorry Michelle,

I replied to the wrong email.

On Dec 7, 2006, at 8:15 PM, Michelle Steiner wrote:

On Dec 7, 2006, at 6:52 PM, Steve Bennett wrote:

This FileMaker plugin allows you to combine PDF files and may help you out.

http://www.schubec.com/en_pdfplugin.php

Huh? What does that have to do with reading XML files with Applescript?


-- Michelle

On Dec 7, 2006, at 6:14 PM, Michelle Steiner wrote:

On Dec 7, 2006, at 3:10 PM, Christopher Nebel wrote:

-- assuming that "XMLfile" has been set to an alias...
tell application "System Events"
set foo to contents of XML file (path of f) -- "'f as text' would have worked, too, as would 'POSIX path of f'."
end tell


The explicit "path of" is necessary because System Events does not recognize an alias a selector data for a file.

Once you're done there, "foo" will be an "XML data" object specifier. To get parts of it, direct your eyes upward in the dictionary from "XML file" to "XML data" and observe that an "XML data" contains "XML elements". You can also get the text representation by saying "text of", but for an element that's mostly only useful for debugging.

Thanks.

Don't forget that if the XML file you're dealing with is a plist, then you ought to be using the Property List Suite instead. It's easier to work with, and there's no guarantee that a plist is XML.

No, it's not a plist; it's an XML export from iTunes.

-- Michelle

--
It is not who I am underneath, but what I do, that defines me.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
@telus.net
Archives: http://lists.apple.com/mailman//archives/applescript- users


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40michelle.org
Archives: http://lists.apple.com/mailman//archives/applescript-users


This email sent to email@hidden




--
"That boy ain't got no culture. You talk about Dylan, and he think you're talking about Dylan Thomas."


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40telus.net
Archives: http://lists.apple.com/mailman//archives/applescript-users


This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
Archives: http://lists.apple.com/mailman//archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Getting started with XML? (From: Michelle Steiner <email@hidden>)
 >Re: Getting started with XML? (From: Christopher Nebel <email@hidden>)
 >Re: Getting started with XML? (From: Michelle Steiner <email@hidden>)
 >Re: Getting started with XML? (From: Steve Bennett <email@hidden>)
 >Re: Getting started with XML? (From: Michelle Steiner <email@hidden>)
 >Re: Getting started with XML? (From: Steve Bennett <email@hidden>)

  • Prev by Date: OT: iMac help?
  • Next by Date: Re: Running an applescript from a Filemaker Advanced file (Addressing Problems)
  • Previous by thread: Re: Getting started with XML?
  • Next by thread: Test
  • Index(es):
    • Date
    • Thread