• 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: Accessing network folders in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing network folders in AppleScript


  • Subject: Re: Accessing network folders in AppleScript
  • From: Wayne Melrose <email@hidden>
  • Date: Sun, 2 Oct 2005 19:51:28 +0200

Hey Charles,

no actually my problem was from a local drive, I think the problem is more finder related rather than network drive related..?

someone could correct me...?



wayne



On Sep 30, 2005, at 8:00 PM, Charles Wesley wrote:

Wayne,

That seems to fix the problem!  Thanks.

I wonder why this would happen...was your problem in getting the size
of a folder also on a network share, or was it on a local drive?

charles

On 9/29/05, Wayne Melrose <email@hidden> wrote:

someone might have a specific answer for you, but i had a similar
problem with getting the size of the folder, on panther, when you
asked for the size of (get info) of a folder, it would not return the
result the first time, the fix i came up with was putting the same
line of code twice in my script ( i can see people wincing now) but
it solved the problem.

try that?



set theFolderPath to "xshare$:xxxxxxx:xxxxxxx:" tell application "Finder" set theFolder to folder theFolderPath set folderDate to modification date of theFolder set folderDate to modification date of theFolder --- duplicate this line

end tell


The script is then supposed to give the user a dialog box with the
modification date. When I try running this script on a new machine
(putting an alias to the folder containing the script on that
machine's script menu), the script fails to run the first time (i.e.,
nothing happens). *However*, the second time, and all subsequent
times, the script runs successfully. This pattern will repeat if I
restart the computer.


Does anyone have any ideas why this script wouldn't run the first
time?





_______________________________________________ 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: Accessing network folders in AppleScript
      • From: Nakia Johnson <email@hidden>
  • Prev by Date: Re: Find and replace space by the Terminal equivalent
  • Next by Date: Re: Accessing network folders in AppleScript
  • Previous by thread: Re: Way too long, dude.
  • Next by thread: Re: Accessing network folders in AppleScript
  • Index(es):
    • Date
    • Thread