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

Difficulties with choose file of type - PowerPoint


  • Subject: Difficulties with choose file of type - PowerPoint
  • From: Brett Powley <email@hidden>
  • Date: Fri, 23 May 2008 09:40:40 +1000

Hi,

I've seen a few other discussions of this on the list but haven't seen a definitive answer.


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?


Thanks, Brett




_______________________________________________ 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: Ed Stockly <email@hidden>
    • Re: Difficulties with choose file of type - PowerPoint
      • From: Joe <email@hidden>
  • Prev by Date: Re: Rename nested folders
  • Next by Date: Re: Difficulties with choose file of type - PowerPoint
  • Previous by thread: Re: Copy folder shell scripting
  • Next by thread: Re: Difficulties with choose file of type - PowerPoint
  • Index(es):
    • Date
    • Thread