Page 1 of 3 123 LastLast
Results 1 to 10 of 30
Discuss Apple Script at the Genuine Mac Support - Hackint0sh.org; Hey guys, i am trying to get to grips with apple script (noobie if honest) ...
  1. #1
    Senior Professional Array JayBird's Avatar

    Join Date
    Oct 2008
    Posts
    373
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    27

    Red face Apple Script

    Hey guys,

    i am trying to get to grips with apple script (noobie if honest)

    so far i have masters the really really basic commands:

    Run Application

    tell application "iTunes" to activate

    Quit Application

    tell application "iTunes" to quit

    Opening Folder

    tell application "Finder"
    activate
    open folder "test" of the startup disk
    end tell

    Deleting Folder

    tell application "Finder"
    activate
    delete folder "test2" of the startup disk
    end tell

    Copy Folder

    tell application "Finder"
    activate
    copy folder "Dummy" of the startup disk to folder "Copy Folder" of the startup disk
    end tell

    Work In PROGRESS

    tell application "Finder"
    activate
    open folder "Users/macuser/Pictures" of the startup disk
    end tell

    - Finder states: access not allowed - must be a permission thing????

    any ideas?????
    I Do Not Condone Piracy, If You Like It BUY IT! - It's Ok To Test But Not Steal - MacBook Pro Owner

    iPhone Owner 3G



  2. #2
    Senior Professional Array JayBird's Avatar

    Join Date
    Oct 2008
    Posts
    373
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    27

    Default

    hey guys, i still cannot get apple script to copy from the HOME section, has anyone got any ideas?
    I Do Not Condone Piracy, If You Like It BUY IT! - It's Ok To Test But Not Steal - MacBook Pro Owner

    iPhone Owner 3G

  3. #3
    Senior Professional Array

    Join Date
    Dec 2007
    Location
    Earth
    Posts
    275
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    23

    Default

    Quote Originally Posted by JayBird View Post
    hey guys, i still cannot get apple script to copy from the HOME section, has anyone got any ideas?
    If it's a permission thing, it may be because the system does not have access to your ~/pictures folder.

    Use get info, see if system has access.
    iMac 20' Intel Core 2 duo 2.16GHz, 4GB DDR2-667 SDRAM, Mac OS X 10.5.1 "Leopard"
    Hackintosh Q6600 4GB DDR2-667 SDRAM, 9800GT, Mac OS X 10.5.6 "Leopard" (EFI-X)
    Macbook 13' Intel Core 2 duo 2.2GHz, 4GB DDR2-667 SDRAM, Mac OS X 10.5.6 "Leopard"
    iPhone 2G (8GB) 2.2 (1.1.2 OTB) Week 48 J'B'ken + Activated + Unlocked

  4. #4
    Senior Professional Array JayBird's Avatar

    Join Date
    Oct 2008
    Posts
    373
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    27

    Default

    the home drive has : Me (R + W), Staff (R) & Everyone (R)

    Pictures : Me (R + W), Everyone (NO Access)

    R = Read
    W = Write

    any ideas??
    I Do Not Condone Piracy, If You Like It BUY IT! - It's Ok To Test But Not Steal - MacBook Pro Owner

    iPhone Owner 3G

  5. #5
    Senior Professional Array

    Join Date
    Aug 2007
    Posts
    231
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    19

    Default

    Arent you missing a leading / ?

    Shouldnt the line read ->

    open folder "/Users/macuser/Pictures" of the startup disk


  6. #6
    Senior Professional Array JayBird's Avatar

    Join Date
    Oct 2008
    Posts
    373
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    27

    Default

    tried it both ways, doesn't want to work for mw
    I Do Not Condone Piracy, If You Like It BUY IT! - It's Ok To Test But Not Steal - MacBook Pro Owner

    iPhone Owner 3G

  7. #7
    Senior Professional Array

    Join Date
    Dec 2007
    Location
    Earth
    Posts
    275
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    23

    Default

    Quote Originally Posted by JayBird View Post
    tried it both ways, doesn't want to work for mw
    do it using another account, this time use
    Code:
    sudo chmod -r 777 ~/
    then execute the apple script. See if that works.
    iMac 20' Intel Core 2 duo 2.16GHz, 4GB DDR2-667 SDRAM, Mac OS X 10.5.1 "Leopard"
    Hackintosh Q6600 4GB DDR2-667 SDRAM, 9800GT, Mac OS X 10.5.6 "Leopard" (EFI-X)
    Macbook 13' Intel Core 2 duo 2.2GHz, 4GB DDR2-667 SDRAM, Mac OS X 10.5.6 "Leopard"
    iPhone 2G (8GB) 2.2 (1.1.2 OTB) Week 48 J'B'ken + Activated + Unlocked

  8. #8
    Senior Professional Array

    Join Date
    Dec 2007
    Location
    Earth
    Posts
    275
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    23

    Default

    oh, and if it works, try with that same account,
    Code:
    chmod -r 1775
    then try your script again.
    iMac 20' Intel Core 2 duo 2.16GHz, 4GB DDR2-667 SDRAM, Mac OS X 10.5.1 "Leopard"
    Hackintosh Q6600 4GB DDR2-667 SDRAM, 9800GT, Mac OS X 10.5.6 "Leopard" (EFI-X)
    Macbook 13' Intel Core 2 duo 2.2GHz, 4GB DDR2-667 SDRAM, Mac OS X 10.5.6 "Leopard"
    iPhone 2G (8GB) 2.2 (1.1.2 OTB) Week 48 J'B'ken + Activated + Unlocked

  9. #9
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by JayBird View Post
    tried it both ways, doesn't want to work for mw
    You can use shell scripts inside AppleScript, it has always been the easiest way for me, try:

    do shell script "open /Users/your_mac_username/Pictures"
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

  10. #10
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    .... or even easier without having to type in the users short name

    do shell script "open $HOME/Pictures"
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2


 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 01-04-2011, 03:20 AM
  2. Wake on Lan Script?
    By jaybee16 in forum AppleTV 1
    Replies: 1
    Last Post: 07-17-2009, 04:00 AM
  3. [1.1.3] run a script when docked (?)
    By dbenc in forum General
    Replies: 0
    Last Post: 02-19-2008, 12:29 AM
  4. [1.1.2 OTB] All in one script?
    By hiimcliff in forum iPhone "2G" (Rev. 1)
    Replies: 0
    Last Post: 01-18-2008, 03:27 PM
  5. web script-apple mac website
    By Japka in forum Genuine Mac Support
    Replies: 0
    Last Post: 12-13-2007, 05:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:58 PM.
twitter, follow us!