• 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
Creating an empty XML file on my desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Creating an empty XML file on my desktop


  • Subject: Creating an empty XML file on my desktop
  • From: Eric Welch <email@hidden>
  • Date: Thu, 24 Apr 2008 19:13:50 -0700

Folks,

I'm working on a way to use Extensis Portfolio to generate an XML file to go with SlideShow Pro (that generates Flash slide shows from groups of images.) It's a pain writing the file names manually into the xml file.

The "images.xml" file tells the SWF file image names and locations in the image folder and what each image's caption is.

I've almost got the whole thing ready to throw together in a whole Applescript. But I was wondering how to tell Applescript to create an empty text file on my desktop named "images.xml" I won't bother you with the other stuff, or Global variable declarations. 

What I'm using to write the information into the XML file is:

set file_reference to open for access file "Ansel:Users:eric:Desktop:images.xml" with write permission
write fullText to file_reference
close access file_reference

I've got the whole xml information (variable fullText) formatted properly to write to the empty XML file. And with a file on the desktop, it writes the information into the file just fine. 

But it escapes me how to create the text file in the first place before I open and write to it the information from Portfolio. 

It's a bit embarrassing that I got all the other stuff down, but can't get a simple text file created on my desktop!

Thanks!

Eric

"If at first the idea is not absurd, then there is no hope for it." – Albert Einstein






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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Creating an empty XML file on my desktop
      • From: Philip Aker <email@hidden>
    • RE: Creating an empty XML file on my desktop
      • From: Rick Gordon <email@hidden>
  • Prev by Date: Re: Choose File Limited by File Extension OR Type ???
  • Next by Date: RE: Creating an empty XML file on my desktop
  • Previous by thread: Re: So simple yet---I need help
  • Next by thread: RE: Creating an empty XML file on my desktop
  • Index(es):
    • Date
    • Thread