• 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: Difficulties with choose file of type - PowerPoint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Difficulties with choose file of type - PowerPoint


  • Subject: Re: Difficulties with choose file of type - PowerPoint
  • From: Joe <email@hidden>
  • Date: Thu, 22 May 2008 17:29:48 -0700

Brett Powley wrote:

>I'm trying to use "choose file of type" to allow a user to choose any PowerPoint presentation.  There seem to be two problems:
>
>(1) there doesn't seem to be a single list of either UTIs or file types which will cover all formats (and you can use only one)
>
>Using the code below, I've found the following list of file types and UTIs:
>
>	name:"97-2004.ppt",file type:"SLD8", file creator:"PPT3", type identifier:"com.microsoft.powerpoint.ppt",
>
>	name:"97-2004show.pps",file type:"PPSS", file creator:"PPT3", type identifier:"com.microsoft.powerpoint.ppt",
>
>	name:"macro-enabled-show.ppsm",file type:"PPSM", file creator:"PPT3", type identifier:"org.openxmlformats.presentationml.slideshow.macroenabled",
>
>	name:"macro-enabled.pptm",file type:"PPTM", file creator:"PPT3", type identifier:"org.openxmlformats.presentationml.presentation.macroenabled",
>
>	name:"ppshow.ppsx",file type:"PPSX", file creator:"PPT3", type identifier:"org.openxmlformats.presentationml.slideshow",
>
>	name:"Classic Photo Album2.pptx",file type:"" file creator:"" type identifier:"org.openxmlformats.presentationml.presentation",
>
>If I create a list of file types, it won't let me choose the last one (which doesn't have a file type).  If I create a list of UTIs, it doesn't let me choose some of the files (see below for an example).
>
>
>(2) some files don't match even when the UTI is correct
>
>
>To find out the list of file types and UTIs, I've created a collection of PowerPoint files and done the following:
>	set pres to choose file
>	log file type of (info for pres)
>
>I can use this to choose a PowerPoint Show (.ppsx) and find the following:
>
>	name:"ppshow.ppsx", type:"PPSX", file creator:"PPT3", type identifier:"org.openxmlformats.presentationml.slideshow"
>
>but now if I try to do
>
>	set pres to choose file of type "org.openxmlformats.presentationml.slideshow"
>
>it doesn't let me choose that file (is that a bug?).
>
>Has anyone else run into this?  Is there a solution?


It must need to be a list.

[of type list of text] : a list of file types or type identifiers. Only files of the specified types will be selectable.

Try:

info for (choose file of type {"com.microsoft.powerpoint.ppt"})

Joe
 _______________________________________________
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: Difficulties with choose file of type - PowerPoint
      • From: Brett Powley <email@hidden>
References: 
 >Difficulties with choose file of type - PowerPoint (From: Brett Powley <email@hidden>)

  • Prev by Date: Difficulties with choose file of type - PowerPoint
  • Next by Date: Re: Difficulties with choose file of type - PowerPoint
  • Previous by thread: Difficulties with choose file of type - PowerPoint
  • Next by thread: Re: Difficulties with choose file of type - PowerPoint
  • Index(es):
    • Date
    • Thread