• 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: different behavior between debug and release builds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different behavior between debug and release builds


  • Subject: Re: different behavior between debug and release builds
  • From: "Nigel Garvey" <email@hidden>
  • Date: Thu, 23 Feb 2006 13:04:40 +0000

Tom Clements wrote on Wed, 22 Feb 2006 14:26:47 -0800 (PST):

>I'm working on an app to open user selected keynote presentations from a
>network location and manipulate them.
>
>It works okay in debug, but when I build it for release Keynote can't open
>the file path that gets passed.
>
>Here's the snip that works in debug (though I freely admit it seems a bit
>nonsensical to me):
>
>        tell application "Keynote"
>            set filenamePosix to POSIX path of (characters 2 thru (length
>of fileName) of fileName as string)
>            set filenamePosix to (characters 2 thru (length of
>filenamePosix) of filenamePosix as string) as string
>            open filenamePosix
>        end tell
>
>fileName comes into this code as a Posix path (slash delimited) starting
>"\Volumes\XYZ\blah\test.key"

Does Keynote require a path or a file specification/alias? Normally, a
path isn't enough. Have you tried something like this?

  set filename to "/Volumes/XYZ/blah/test.key"
  set theFile to filename as POSIX file

  tell application "Keynote"
    open theFile
  end tell


NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: different behavior between debug and release builds
      • From: Tom Clements <email@hidden>
  • Prev by Date: Re: Quark Open Options
  • Next by Date: Background Pict Bug?
  • Previous by thread: Re: different behavior between debug and release builds
  • Next by thread: Re: different behavior between debug and release builds
  • Index(es):
    • Date
    • Thread