• 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: Universal or general path to desktop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Universal or general path to desktop?


  • Subject: Re: Universal or general path to desktop?
  • From: MR <email@hidden>
  • Date: Mon, 7 Apr 2003 22:22:11 -0800

Thanks Ben and Malcolm,

but I don't see how that will help. A ((path to desktop folder as string)) will be different for every desktop. e.g. the example I gave specific to my desktop is

"Macintosh HD: users:Mike:desktop:PDFfiles:"

whereas the path to another desktop might be

"Payables HD:users:Linda:desktop:PDFfiles:"

Also, where is testing for current system version going to help? I already test for current platform to test for OSX or OS9.2.

I need to be able to point the script to a folder that is already on each desktop (PDFfiles) so that following scripts can put PDF files into that file. I've got it working on my computer. Now I need it to work on any desktop that has a folder with that name.

Mike

On Monday, April 7, 2003, at 08:54 PM, email@hidden wrote:

Message: 13
Date: Tue, 8 Apr 2003 12:50:32 +1000
To: email@hidden
From: Malcolm Fitzgerald <email@hidden>
Subject: Re: Universal or general path to desktop?

Mike,

On Monday, April 7, 2003, at 09:57 PM, MR wrote:

I need to make the following line, within an Applescript within a
Filemaker script, able to work on any desktop within the office,
whether running OSX or OS9.2:

set sourceFolder to "MacintoshHD:Users:username:desktop:fileondesktop:"

The above is specific to OSX on one desktop and I need it to work
on one of several different desktops.

Try...

set sourceFolder to ((path to desktop folder as string) &
"fileondesktop") as string

And if that solution isn't sufficient you can use FMPs built-in
functions to test for status(CurrentSystemVersion) and provide code
accordingly.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Universal or general path to desktop?
      • From: Ben Waldie <email@hidden>
    • Re: Universal or general path to desktop?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Universal or general path to desktop?
  • Next by Date: Re: Formating bytes to Mbytes / Gbytes ??
  • Previous by thread: Re: [XPOST] Universal or general path to desktop?
  • Next by thread: Re: Universal or general path to desktop?
  • Index(es):
    • Date
    • Thread