• 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
Finder acting up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder acting up


  • Subject: Finder acting up
  • From: Autocat <email@hidden>
  • Date: Tue, 21 Dec 2004 21:36:08 +0100

Hi there,

I'm having a bunch of problem scripting the Finder (this is under 10.3.6 & 10.3.7)

duplicate theFile to theDestinationFolder with replacing

Just doesn't duplicate if there's already a file with the same name in the destination folder. Same problem is I use move instead of duplicate (the destination folder is on a local hard disk)

Also, I spent a great deal of time trying to determine if a folder exists, and create one if it doesn't. I tried the various "folder exists" syntaxes to no avail.

The only way to do that was to use the try/on error mechanism

try
set theDestinationFolder to gPathToRootPDFFolder & ":" & theSubFolderName as alias
on error errorMsg
make new «class cfol» of (gPathToRootPDFFolder as alias) with properties {name:theSubFolderName}
set theDestinationFolder to gPathToRootPDFFolder & ":" & theSubFolderName as alias
end try


Also, the only way to create a folder was to use this <<class cfol>>

Is the Finder's AS dictionary broken or something, or is it just me ?

Thanks very much for any help

Laurent Humbert
_______________________________________________
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: Finder acting up
      • From: "John C. Welch" <email@hidden>
    • Re: Finder acting up
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Xmas Etiquette
  • Next by Date: RE: iTunes Help
  • Previous by thread: Re: Problematic AppleScript Advice needed!
  • Next by thread: Re: Finder acting up
  • Index(es):
    • Date
    • Thread